C And C++ Compilers
GCC
The current default compiler for supported Linux and Solaris computers is GCC. Default versions vary: 4.1.2 in /usr/bin for RedHat 5 computers, 3.4.4 for Solaris 8 computers in /s/std/bin, /s/gcc/bin (as of this writing). The GCC acronym now stands for
GNU Compiler Collection, to reflect the fact that GCC includes front-ends for many different languages.
GCC 3.0.X is stricter at adhering to the ANSI C++ standard than older versions, so it may emit warnings or errors for code that previously compiled cleanly. In most cases, we strongly suggest that you correct your code to conform to the standard.
See Also:
Sun Workshop C/C++ Compilers (Solaris)
The SUN Workshop compilers are installed in
/opt/SUNWspro/bin on Solaris Sparc computers.
Sun Workshop C/C++ Compiler notes:
* Use
dbx (
/opt/SUNWspro/bin/dbx) to debug executables compiled with the
-g flag
* note: This compiler is a Sun
optional product. Not all Solaris installations will have it installed
See Also:
Portland Group C And C++ Compilers (pgc, Pgcc, PgCC)
The Portland Group compilers (Fortran and C/C++) are available under
/s/hpf for our supported Redhat Linux workstations. It supports C (
/s/hpf/bin/pgc and
/s/hpf/bin/pgcc) and C++ (
/s/hpf/bin/pgCC). You will need to set the PGI environment variable to point to </s/hpf> before you use any of these compiling commands.
See Also:
Intel C/C++ Compiler (Linux)
The Intel C/C++ compilers for Linux are installed in
/s/intelcompilers on Linux computers. Users should run one of the following:
- source /s/intelcompilers/bin/iccvars.csh ia32 or source /s/intelcompilers/bin/iccvars.sh ia32 to initialize environment for 32-bit compilers
- source /s/intelcompilers/bin/iccvars.csh intel64 or source /s/intelcompilers/bin/iccvars.sh intel64 to initialize environment for 64-bit compilers
The
iccvars.csh script should be used by users who use
csh or
tcsh as their login shell. Users who use
bash,
ksh or
sh as their login shells will want to use
iccvars.sh instead.
This product is also installed with the following products:
-
Intel Performance Primatives
-
Intel Math Kernel Library
-
Intel Thread Building Blocks
These products are available for use with the Fortran compiler after initializing one's environment with the setup scripts above.
See Also: