??? 12/15/06 16:24 Read: times |
#129556 - Portability - it's all down to you! Responding to: ???'s previous message |
Stefan Kanev said:
Portable - to be easy to move to other complier It is up to you to make your code portable - this is not a feature of the compiler! Effective use of typedef, macros, and conditional-compilation will make this as easy as possible - but it is never trivial. Like quality, portability is something that has to be designed-in from the outset rather than bolted-on as an extra. when micro has to be changed to other family. Especially at the 8051-type "small embedded" end of the market, you will never get anything completely portable - you are far too closely connected to the underlying architecture. The best you can hope is to stricly isolate all your hardware-dependencies into specific files, and avoid all hardware-dependencies in all other files. |