Indiana University
University Information Technology Services
  
What are archived documents?

On IU's research systems, how do I compile my C or Fortran programs using GNU compilers?

On Indiana University's research systems (Big Red, Quarry, Libra, the Research Database Complex [RDC]), you can compile programs written in C or Fortran using the GNU compilers.

Fortran 77 programs

To compile the Fortran 77 program simple.f, you would use the following command:

f77 -o simple simple.f

Use f90 instead of f77 to compile F90 programs.

C programs

To compile the C program simple.c, you would use the following command:

gcc -o simple simple.c

This document was developed with support from the National Science Foundation (NSF) under Grant No. 0503697 to the University of Chicago and subcontracted to Indiana University. Additional support was provided by IU through its participation in the TeraGrid, which is supported by the NSF under Grants No. 0833618, SCI451237, SCI535258, and SCI504075. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the NSF.

Also see:

This is document arkh in domains all and tgrid-all.
Last modified on June 23, 2008.
Please tell us, did you find the answer to your question?