Portable C Compiler (short for pcc or less commonly pccm - “portable C compiler machine”) is one of the earliest C compilers written by Stephen S. Johnson of Bell Labs [2] in the mid-70s, based in part on the work of Alan Snyder .
| Portable c compiler | |
|---|---|
| Type of | |
| Developer | |
| Written on | |
| operating system | |
| Latest version | |
| License | |
| Site | |
He became one of the first compilers capable of adapting code to various architectures of computing systems, which ensured its long life. It was shipped with BSD Unix until the release of 4.4BSD in 1994 - then it was replaced by GCC . It was so powerful in the 1980s that many compilers were based on it. Here is what Denis Ritchie writes in his work [3] on the history of the C language:
| In the 1980s, C quickly gained popularity and compilers became available on almost every machine and operating system; in particular, it has become popular as a programming language for personal computers, both for developers of commercial software for these machines and for ordinary users who are keen on programming. At the beginning of the decade, virtually every compiler was based on Johnson's pcc; by 1985, there were already many compilers created by independent developers. |
Content
Features
The success of the Portable C Compiler was facilitated by its portability and high diagnostic capabilities:
- The compiler was designed in such a way that only a small part of its source code was platform dependent .
- It was relatively strict with respect to syntax errors, which positively influenced the correctness of the code.
Current Version
The new version of Portable C Compiler , based on the original version written by S. Johnson, is now supported by Andres Magnusson. The compiler is distributed under a BSD license . According to Andres:
| ... Its great advantage (in addition to the BSD license, which matters only to license fanatics) is that it is fast, 5-10 times faster than gcc, but the accuracy of the code does not suffer ... it’s also quite easy to port it ... [4 ] |
This new version was added to NetBSD pkgsrc and OpenBSD in September 2007, [5] and, a bit later, to NetBSD , [6] which gave rise to the assumption that over time this compiler might supersede the GNU C Compiler within operating systems based on on the BSD . The development and further development and adaptation of the PCC compiler is mainly carried out by the OpenBSD project, and as of December 29, 2009, the PCC compiler builds a functional OpenBSD image under x86-32 [7] . [eight]
April 1, 2011, pcc version 1.0 was released. [9] In this release, the compiler supports the x86 and x64 architectures and runs on the operating systems NetBSD, OpenBSD, FreeBSD, various Linux distributions, as well as Windows. Further development is ongoing, including support for more architectures, as well as front-ends for FORTRAN 77 and C ++.
In 2012, ppc was removed from the OpenBSD source code. Its development has stalled, and no one has taken to make it a real alternative to GCC. [ten]
The latest version of pcc 1.1.0, was released on December 10, 2014.
Links
- ↑ pcc News
- ↑ Johnson, SC A portable compiler: theory and practice . Proceedings of the 5th ACM SIGACT-SIGPLAN symposium on Principles of programming languages. Tucson, Arizona. 97-104 (1978).
- ↑ Ritchie, Dennis M. The development of the C language . The second ACM SIGPLAN conference on History of programming languages. Cambridge, Massachusetts. 201-208 (1993). - “At the start of the decade, nearly every compiler was based on Johnson's pcc ; by 1985 there were many independently-produced compiler products. ". Date of treatment December 30, 2008. Archived on April 7, 2012.
- ↑ BSD Licensed PCC Compiler Imported
- ↑ 'CVS: cvs.openbsd.org: src' - MARC
- ↑ source-changes: CVS commit: src / dist / pcc
- ↑ Call for testing: pcc and the OpenBSD kernel
- ↑ Slashdot | GCC Compiler Finally Supplanted by PCC?
- ↑ 1.0 release - pcc portable c compiler . pcc.ludd.ltu.se. Date of treatment July 17, 2017.
- ↑ 'Re: Story behind PCC's removal?' - MARC . marc.info. Date of treatment July 17, 2017.
See also
- Amsterdam compiler kit
- GNU Compiler Collection
Links
- pcc.ludd.ltu.se - official website of Portable C Compiler