Hai All.... I am new to Embedded world...past 3 months I working in 8051 programming through keil C...I request all experts to guide "How To write a Optimized Code" (kindly post any links and book names)...Give me tips what are all topics to learn in Embedded system...what is the important things to be known for beginners.....
thank you, karthik
What do you mean by "optimum"?
* easiest to write?
* easiest to debug?
* easiest to maintain?
* fastest execution?
* smallest code size?
* smallest data size?
or what?
Note that some of the above are (or tend to be) mutually exclusive...
Optimum in the sense of fast execution......
Which is an excellent illustration of why just saying "optimum" without qualification is meaningless!
Many of the techniques to give the fastest possible execution will also give larger code size; eg, inlining and loop unrolling.