GNU Pascal on the Fatman Server
The current release of GNU Pascal (gpc) compiler is Version 2.1. The software compiles a Pascal program file and writes the result in an executable file, named a.out by default.
To invoke the Pascal compiler, type:
gpc [options | filename]...
Some of the commonly used options are:
| Option: | Result: |
| -o {outfile} | Specifies the output of your compiled code. |
| -c | Specifies that you want to compile but not link. |
| -I{inc_dir} | Specifies additional user-defined directory for include files. |
| -l{libs} | Use the specified library or libraries when compiling. |
| -S | Compile and only generate assembly code. |
Example:
To compile "myprogram.p", you would type:
gpc myprogram.p
If there were no errors, an executable file named "a.out" would be generated.
Additional Information:
Further information about gpc is available via the online man pages. To access the pages, type:
man gpc
Or you can visit the web site:

