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

Back to Subject List

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


 
#157843 - to C or not to C
Responding to: ???'s previous message
Bert,

congratulations. It's a big thing to cross that barrier.

Bert Van Den Berg said:
The thing that really convinced me about C was that after the customer tested the prototype and declared it to meet all of the specifications they immediately changed the specifications and the changes are soooooo simple in C compared to assembly.


The biggest problem with asm is, that even a modest routine tends to hang out off the vewing angle of the programmer (even with big screens and/or printouts a human cannot "see" simultaneously more than a dozen of lines or so). Macros might resolve this problem to a certain extent, as smart modern folding editors can, too.

Higher level languages also tend to push you towards a more tidy way of indenting, using more descriptive symbols (function and variable names) etc. Asm tends to be "linear" and "character-sparing" - a legacy from the times when a handful of spaces meant $$$s of memory. It is also "easier" to make a complete messy algorithm in asm than in a HLL.

All these are indeed problems in real life and although self-discipline and use of modern smart tools can help substantially, they cannot really save the day, as asm is already seen as dead and people want the easy and quick stuff. C is too modern and sexy. This is a very very similar situation than with the 8-bitters and the modern and sexy 32-bitters...

However, there are "real" advantages of C over asm - although the only one I found in small micros is the "automated" memory/variables management, plus the ability of building complex data types. This alone can make C worth to be used in a bigger project.

Jan Waclawek

List of 18 messages in thread
TopicAuthorDate
Assembly vs C            01/01/70 00:00      
   tools for the Job            01/01/70 00:00      
      Other languages for the 8051            01/01/70 00:00      
         yes            01/01/70 00:00      
            C/C++ almost dead for PCs?            01/01/70 00:00      
               .NET does not preclude C++            01/01/70 00:00      
                  C# or C++            01/01/70 00:00      
               yes especially for systems programming            01/01/70 00:00      
      Multiple implementations            01/01/70 00:00      
   re:-)            01/01/70 00:00      
   to C or not to C            01/01/70 00:00      
      C = RAD            01/01/70 00:00      
         rapid            01/01/70 00:00      
            I disagree here.            01/01/70 00:00      
               this again depends            01/01/70 00:00      
   you said it            01/01/70 00:00      
   Ain't this the truth!            01/01/70 00:00      
      Often even worse            01/01/70 00:00      

Back to Subject List