Compiling

  • GNU compilers

    The GNU compilers are the free compilers from the GNU project. These compilers are available on most systems, and are the ones you are probably most familiar with if you develop on Linux. The GNU Compiler Collection includes compilers for C (gcc), C++ (g++), Fortran 77 (g77), as well as others.

    Full documetation for the GNU Compiler Collection is available online. The version on the Hive cluster as of this writing is 3.2.3. The command gcc -v will tell you the current version:

    [bargle@brood02 ~]$ gcc -v
    Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
    Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
    --infodir=/usr/share/info --enable-shared --enable-threads=posix
    --disable-checking --with-system-zlib --enable-__cxa_atexit
    --host=i386-redhat-linux
    Thread model: posix
    gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-49)
    		      
  • NAG Fortran 95

    We also have the Fortran 95 compiler from the Numerical Algorithms Group (NAG). This is a much better fortran compiler than the one that comes with the GNU Compiler Collection. Documentation is available online. The NAG compiler can be invoked from the command line as f95:
    [bargle@brood01 examples]$ f95 -o helloworld helloworld.f
    Obsolescent: helloworld.f, line 1: Fixed source form
    [bargle@brood01 examples]$
    		      

    (The error message is due to the archaic contents of the source file.)

Previous
Next

 

home | projects | facilities | reference | contact us
© Copyright 2005, Institute for Advanced Computer Study, University of Maryland, All rights reserved.