Using the C language and a PC to develop an embedded system can be very productive. To improve your chances of success, you must pay particular attention to code portability. Portability is a very desirable property for source code to have: it allows you to develop a library of code that is reusable, even if you change microprocessors. Follow the guidelines below to improve the portability of your code from a PC compiler (like Visual C++) to an ISO conforming embedded compiler.

hmtoggle_plus1General Guidelines
hmtoggle_plus1QAC Rules
hmtoggle_plus1Integral Promotion
hmtoggle_plus1Standard Macros
hmtoggle_plus1Other Guidelines