User Tools

Site Tools


guide:compiling

This is an old revision of the document!


Compiling

Compilers

The following is a list of C, C++ and Fortran compilers available on the SUN cluster and the M9000:

Sun Studio

  • cc
  • CC
  • f90/f95

GNU

  • gcc
  • g++
  • gfortran

Example Code

C

#include <stdio.h>
 
int main()
{
    printf("Hello World");
    return 0;
}

Fortran

PROGRAM Hello
    PRINT *, "Hello World"
END PROGRAM Hello

Environment

module Command

  • avail

    - check which modules are available

  • add

    - add a module to the current environment

  • remove

    - remove a module from the environment

/app/dokuwiki/data/attic/guide/compiling.1297952027.txt.gz · Last modified: 2021/12/09 16:42 (external edit)