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

Environment

module Command

The

module

hekkio

  • 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

Compiling

Example Code

C

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

Fortran

PROGRAM Hello
    PRINT *, "Hello World"
END PROGRAM Hello
/app/dokuwiki/data/attic/guide/compiling.1297952468.txt.gz · Last modified: 2021/12/09 16:42 (external edit)