Difference between revisions of "GNU Pascal"

From Lazarus wiki
Jump to navigationJump to search
(Created page with "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 IS...")
 
Line 2: Line 2:
  
 
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.
  
 
== External links ==
 
== External links ==

Revision as of 16:20, 22 December 2013

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