Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

On Big Red at IU, how do I compile my C, Fortran, or Java programs?

You can compile programs written in C, Fortran, or Java on Big Red at Indiana University, as shown below. See the Big Red home page for more information about available compilers, libraries, and other tools.

Fortran 77 programs

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

xlf -o simple simple.f

C programs

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

xlc -o simple simple.c

Java programs

To compile the Java program simple.java, use the following command:

javac simple.java

After you compile your program, you could use serialjob to run it as follows:

serialjob ./simple serialjob java simple.class

Alternatively, you could use a LoadLeveler script to submit batch jobs. For more information, see Getting started on Big Red.

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.

This is document arkg in domains all and tgrid-all.
Last modified on July 15, 2009.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.