Info logo
Encyclopedia

  

ANSI C

Home :: Up
Google
www.fastload.org

ANSI C

Most programming languages have differences from one implementation to another. For example, a C compiler on a Microsoft Windows system may have some features not found in its counterpart on a UNIX system, or that are accessed in a different way. While this is acceptable in some cases, in others, it may be important to be able to compile the same source code on different systems so as to be able to have the program on different systems at minimal cost.

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.


Mark us

This article is licensed under the GNU Free Documentation License.
You may copy and modify it as long as the entire work (including additions) remains under this license.
To view or edit this article at Wikipedia, follow this link.