sample photo spread
Information Technology Services

Language Processors

Language Processors

A number of compilers are available for UNIX. However, at URI we only support C and Fortran.

Each compiler may have specific parameters that can be supplied duringcompilation. For additional information on the compilers, check the man pages or other system documentation, and Handout #76, "UNIX: An Overview".

Fortran

All Fortran source programs must have a .f suffix. To compile and execute a Fortran program type:

xlf -o mymod myprog.f

Where: myprog.f is the source file name and mymod will be the name of the resulting executable file.

C

All C source programs must have a .c suffix. To compile and execute a C program type:

cc -o mymod myprog.c

Where: myprog.c is the source file name and mymod will be the name of the resulting executable file.