Difference between revisions of "GNU Pascal"

From Free Pascal wiki
Jump to navigationJump to search
m (Removed the French of what's specified in English later in the article; linked to the Extended Pascal article)
(Removed the copy and pasted text from the website when a link already exists. Undo failed.)
 
(3 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
GNU Pascal (GPC) is the official [[Pascal]] compiler of the [[GNU]] project. It is compatible to [[Standard Pascal]] as defined in ISO 7185, and it implements "most" of the ISO 10206 [[Extended Pascal]] standard.
 
GNU Pascal (GPC) is the official [[Pascal]] compiler of the [[GNU]] project. It is compatible to [[Standard Pascal]] as defined in ISO 7185, and it implements "most" of the ISO 10206 [[Extended Pascal]] standard.
  
Unlike [[Free Pascal]], GPC is not self-hosted, i.e. it is not able to translate and build itself. Rather, it acts as a frontend to GNU Compiler Collection (GCC), so that Pascal code is translated to C and from C to machine language. This has the advantage that it is instantly portable to any platform the GCC compiler supports. However, since GNU Pascal is not more than a frontend, it does have to adapt to every major change that is done to GCC. Therefore, new major versions are adopted only slowly.
+
Unlike [[Free Pascal]], GPC is not '''self-hosted''', i.e. it is not able to translate and '''build itself'''. Rather, it acts as a '''frontend''' to GNU Compiler Collection (GCC), so that Pascal code is translated to C and from C to machine language.  
 +
 
 +
This has the advantage that it is instantly '''portable''' to any platform the GCC compiler supports. However, since GNU Pascal is not more than a frontend, it does have to adapt to every major change that is done to GCC. Therefore, new major versions are adopted only slowly.
  
 
Free Pascal is expected to generate more efficient machine code than GPC.
 
Free Pascal is expected to generate more efficient machine code than GPC.

Latest revision as of 13:11, 6 December 2017

English (en) français (fr)

GNU Pascal (GPC) is the official Pascal compiler of the GNU project. It is compatible to Standard Pascal as defined in ISO 7185, and it implements "most" of the ISO 10206 Extended Pascal standard.

Unlike Free Pascal, GPC is not self-hosted, i.e. it is not able to translate and build itself. Rather, it acts as a frontend to GNU Compiler Collection (GCC), so that Pascal code is translated to C and from C to machine language.

This has the advantage that it is instantly portable to any platform the GCC compiler supports. However, since GNU Pascal is not more than a frontend, it does have to adapt to every major change that is done to GCC. Therefore, new major versions are adopted only slowly.

Free Pascal is expected to generate more efficient machine code than GPC.

External links

Various Pascal Compilers:
AAEC Pascal | Alice Pascal | Apple Pascal | Borland Pascal | Clascal | Delphi | Free Pascal Compiler (FPC) | GNU Pascal | Kylix | Lisa Pascal | Mac Pascal | Metrowerks Pascal | NBS Pascal | OMSI Pascal | PascalABC.net | P32 | Sibyl | Smart Pascal | Stanford Pascal Compiler | Swedish Pascal | THINK Pascal | Turbo Pascal | UCSD Pascal | VAX Pascal | Virtual Pascal | winsoft PocketStudio
An extensive list of compilers was maintained at Pascaland (Internet Archive Version) up to January 2018.