UNIX Time-Sharing System: Portability of C Programs and the UNIX System

01 July 1978

New Image

Portability of C Programs and the UNIX System By S. C. JOHNSON and D. M. RITCHIE (Manuscript received December 5, 1977) Computer programs are portable to the extent that they can be moved to new computing environments with much less effort than it would take to rewrite them. In the limit, a program is perfectly portable if it can be moved at will with no change whatsoever. Recent C language extensions have made it easier to write portable programs. Some tools have also been developed that aid in the detection of nonportable constructions. With these tools many programs have been moved from the PDP-11 on which they were developed to other machines. In particular, the UNIX* operating system and most of its software have been transported to the Inter data 8/32. The source-language representation of most of the code involved is identical in all environments.