The community solves this problem by defining a subset of a programming language and standardizing it so different manufacturers abide by it; this means that as long as the programmer sticks with the subset, the software can be ported from one platform to another.
ANSI C is one such subset for the C programming language. POSIX and the Single UNIX Specification are others.
Frequently, it's unreasonable to try to write any non-trivial program in such a way that it can be ported from one platform to another without changes; in this case, one tries to restrict the non-portable code to minimize the effort of porting.
Search Encyclopedia
|
Featured Article
|