8471 shaares
203 private links
203 private links
The different levels of portability:
- Language
- Standard Library
- POSIX
- 3rd party libraries
- OS
The more features a program needs, the further out it must reach through the layers.#
Avoid – or wrap – compiler language extensions
C though portable is not suitable as much work as to be done to ensures it works on multiple systems.
In order to use OS extras, use an interface to reimplement it in systems that does not support it.