Shalini wrote on 17/09/04 :
Iam looking for some books which deal with Embedded software as well as
C programming. I was suggested An Embedded software primer - David E
Simon by a friend.
Would like to have your feedback as well as some good book
suggestions.
AFAIK, there is nothing special about C dealing with embedded software
programming. Most of the code can be written in reusable standard C. As
usual, the non standard code parts (system, direct I/O) should be
isolated from the standard code to help porting (and debugging too, as
a side effect).
The only thing is that it is a usual practice to unit test the code on
a hosted environment (like a PC under Windows or Linux). The tools are
often more easy and fast to use. This is why easy porting is not an
option! (The direct I/O can be simulated by some smart stub that
display intersting information like address, register number,
direction, values etc. A simple static variable can simulate a physical
register)
The group dedicated to embedded programming (not language specific) is:
--
Emmanuel
The C-FAQ:
http://www.eskimo.com/~scs/C-faq/faq.html
The C-library:
http://www.dinkumware.com/refxc.html
"C is a sharp tool"