??? 02/15/12 07:52 Read: times |
#185974 - RE: A couple of things ... Responding to: ???'s previous message |
Richard Erlacher said:
Secondly, the ratio varies as the code size. If a guy is writing code that has to fit into 2kB, as in a "small" MCU, then he might be better off writing it in ASM because it's pretty easy to manage Yes, I'd agree with you there. 'C' does have certain minimum "overhead" for its runtime support - so, the smaller the overall code size, the more significant that is going to be in percentage terms. The larger the code gets, the less significant this "overhead" becomes. A prime example of this is writing a "simple" (sic) "Hello, World" application using printf(). The overhead of including printf() is large, so it really makes such a trivial program look bloated. But the overhead remains the same if you use printf() dozens or hundreds of times; so, in a large program, it can become insignificant - in fact, doing the output "manually" each time could end up taking more code! I doubt Andy ... would have easily succeeded plowing up new ground with HLL if they hadn't already possessed a firm knowledge of the 805x core Actually, I started in 'C' on the 8051 with no prior knowledge of the core at all! But I did have plenty of prior experience with other cores... |