clocktower
Index A-Z
From the Chancellor
Visitors
Alumni
People Finder
For the Media
For Parents
Jobs
SalukiNet
SIUC Intranet
Athletics
Events Calendar
Weather
IT Home
Get Help
How Do I
FAQ
Get Network ID
Get UNIX ID
Get Mypage ID
Change Password
Services Index
Doc Index
line

GNU Pascal on the Fatman Server

Print friendly page

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:

http://www.gnu-pascal.de