This is an old revision of the document!
The following is a list of C, C++ and Fortran compilers available on the SUN cluster and the M9000:
The module command provides a convenient mechanism for managing which environment variables are set in your shell session. The following is a list of the basic usage of the module command:
module avail
Check which modules are available
module add <module>
Add a module to the current environment
module remove <module>
Remove a module from the environment
#include <stdio.h> int main() { printf("Hello World"); return 0; }
PROGRAM Hello PRINT *, "Hello World" END PROGRAM Hello
The following code snippets demonstrate how to compile the above code examples use the Sun Studio compiler suite:
$> cc -fast -o hello hello.c
$> f90 -fast -o hello hello.f90
$> gcc -o hello hello.c
$> gfortran -o hello hello.f90