??? 01/25/11 19:06 Read: times |
#180782 - I hate C Responding to: ???'s previous message |
Erik Malund said:
I have had very few '51 projects where 1-10% of the code in assembler has not been either necessary (as in fast enough on a f120 @96MHz) or cost saving (as in using a smaller derivative).
my philosophy re '51 code is "C as far as it goes, but no fear of assembler" You all know that I don't agree with "C is faster to write, easier to maintain" etc. so I am not going to repeat it again (whoops, I just did it... ;-) ). Nor do I subscribe to "one size fits all" philosophy. This all is too dependent on the circumstances. These days, asm tends to be underestimated in many respects, probably as an overreaction to the relatively sudden increase of availability of HLL tools. For those, who were forced to use asm in inadequately sized (big) projects, it must have been a great relieve, and so they started to advocate them universally, I understand that. And, as far as portability is concerned especially in the (small embedded) practice, you all know that C is no better than asm - just that some of you deny it fiercely. The tricks which could increase portability of C (various portability headers, macros, whatever) work similarly with asm, with some added inconvenience, applicable wherever needed. JW |