Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/13/08 16:37
Read: times


 
#160018 - That's why there's ASM to use instead
Responding to: ???'s previous message
Unlike PC's and other "large" systems, MCU's require that one consider what resources are being consumed. Today, it doesn't matter whether one's code will occupy 100 bytes or 8000, since the smallest "full" 805x's seem to have that 8192-byte program store. It doesn't matter whether they consume 10 or 100 bytes of read-write memory, since they all seem to have more than that.

If one wants to write larger-than-8kB-programs, or use many large tables, which can be very convenient and reliable, that's where the debate over ASM vs 'C' begins. The difficulty begins with the fact that the programmers don't want to learn more than one tool set. While a good Macro-Assembler allows the generation of very orderly, well-organized, well documented, and easily maintainable code, programmers like shortcuts. Of course, shortcuts come in two flavors. There are those that simply skip over essential steps, and there are those that simply choose a thriftier path through the task.

HLL's are not a shortcut. They're just another tool, and, IMHO, they're inappropriate for use in coding tasks of < ~200K lines. If you have to write an OS, well, OK. If you just want to transport data from here to there and manipulate it on the way, well, ASM is probably better. It may even be easier for the programmer.

RE




List of 34 messages in thread
TopicAuthorDate
a simple SETB question            01/01/70 00:00      
   SETB from 20h to 2FH            01/01/70 00:00      
      assembler missed this one            01/01/70 00:00      
         I know of none that can't            01/01/70 00:00      
   what about this?            01/01/70 00:00      
      try ORL to set any bit in internal RAM            01/01/70 00:00      
         wrong, nonstandard and why            01/01/70 00:00      
            ORL, Set any bit (more informative)            01/01/70 00:00      
               iram            01/01/70 00:00      
                  Where is that defined?            01/01/70 00:00      
                     my word was not 'defined' but            01/01/70 00:00      
                        a rose, by any other name ...            01/01/70 00:00      
                           I think Erik has it?            01/01/70 00:00      
                              aliased/overlayed            01/01/70 00:00      
                                 Fair enough            01/01/70 00:00      
                              pDATA?            01/01/70 00:00      
                                 Why do you think 64TB would be enough?            01/01/70 00:00      
                                    It would not be            01/01/70 00:00      
                                       Tools are important for size            01/01/70 00:00      
                                          That's why there's ASM to use instead            01/01/70 00:00      
                                       this flies against some previous posts of yours            01/01/70 00:00      
                                          It's like herding cats            01/01/70 00:00      
                                             Flame bait?            01/01/70 00:00      
                                                No ... not really            01/01/70 00:00      
                                                   yes            01/01/70 00:00      
                                 PDATA & XDATA            01/01/70 00:00      
                                    I won't argue that ... but ...            01/01/70 00:00      
                                       Agreed, but...            01/01/70 00:00      
                                          It is seldom that simple ...            01/01/70 00:00      
                                             That's the point!            01/01/70 00:00      
                                             since you are really interested            01/01/70 00:00      
                                                Thanks!            01/01/70 00:00      
      Yes, that is the way I normally do it            01/01/70 00:00      
      WHY TO DISTURB ACC ?            01/01/70 00:00      

Back to Subject List