??? 05/02/06 08:25 Read: times |
#115328 - good usage of a tool Responding to: ???'s previous message |
Andy Neil said:
Again, a compiler is just a tool - it takes a good programmer to get the best out of a compiler, too! It is always possible to look at the odd couple of lines of compiler output in isolation and say, "I could do better" - but you need to consider the entire program as a whole. Full ack ! As I started with C, I have rewritten some assembler applications in C and the result was, the speed and size overhead was only about 5..25% on comparison to assembler. But on some applications the SRAM usage was less, because the linker can always better overlay local variables as any human can do. So in one case I could remove an external connected SRAM after rewriting in C ! So C saves not only development time, it saves also cost and pcb space. Peter |