??? 06/13/07 13:47 Read: times |
#140664 - non-religious reasons and debunking some Responding to: ???'s previous message |
Other than that and a couple of religious reasons which are too ridiculous to be taken seriously, there is almost no difference between coding in C and programming in asm.
Once you have stopped hating C (I did not say started loving it) and thus gained that you actually write C code without grumbling and reading the manual for every step, you will find that the time to code a given function reduces dramatically when done in C. THAT is the one advantage of C. Less bugs in C?? I have seen more bugs in C than in assembler. That, however is not because assembler is easier, just the opposite, any amateur can write 'something' in C, to write 'something' in assembler requires more of an understanding. Easier debugging in C?? yes, if it is scribbles, if it is actually code (i.e. commented) I see no easier debugging in C with ONE exception: you have more of the code on the screen in the ICE. C is Portable?? who on earth 'ports' small embedded? you will have to rewrite 90% anyhow when no OS is involved. Ah, there is one exception here: you use "webcode" because you are incapable/too lazy to write it yourself and the only webcode you can find is for another processor. Within the same family assembler is just as (maybe more) 'portable' as C. That C is less efficient in code space and execution time is a given (if the corresponding assembler is written by a true professional), but how big a chunk of your program is critical in that respect. There is no reason to hate either C or assembler, both have their place. Erik |