??? 05/13/09 03:41 Read: times |
#165282 - Just this particular function would be very fast in ASM Responding to: ???'s previous message |
Andy Neil said:
Richard Erlacher said:
I should preface this comment with the statement that I'm not one who uses 'C' or other HLL's for tasks small enough to fit in an 8-bit MCU. Richard Erlacher, who doesn't use 'C' for an 8051, said:
... 'C' can do it too, albeit much (sic) more slowly and with considerably (sic) more code space consumed. Well-written 'C' with a decent compiler will probably not be that bad... This particular function will go VERY fast in the manner I've cursorily described, use very limited resources, and, I'm quite well persuaded, would be much slower in 'C' or any other common HLL. That may not be a particularly big penalty for you, however. Especially if the specific requirement of this assignment is that it be written in 'C'...! Granted! ;-) RE |