A Note about SGI Libraries and Compilers
-
ABI n32
This is the default compilation mode on the SGIs.
It is the new high-performance 32-bit compiler.
Since it is the default no extra option is needed to invoke it.
This is equivalent to putting -n32 on the compile line
or setting the environment
variable:
setenv SGI_ABI n32
The libraries used for this compiler are the /usr/lib32 libraries
- ABI n64
This is the 64-bit compilation mode.
This can be used with the -64 compiler option
or setting the environment
variable:
setenv SGI_ABI 64
The libraries used for this compiler are the /usr/lib64 libraries.
The 64-bit compiler can be used on all SGIs except the O2s.
- ABI 32 - o32
This is the old 32-bit compiler, standard in IRIX 5.x.
This can be used with the -32 compiler option
or setting the environment
variable:
setenv SGI_ABI 32
The libraries used for this compiler are the /usr/lib libraries.
- gcc & g++ & g77
The default compilation mode is n32 (-mabi=n32)
To compile 64-bit use -mabi=64: e.g. gcc -mabi=64
The o32 compilation mode does not exist.
Many 3rd party software packages have lib, lib32, and lib64 libraries.
To compile a program with a particular shared library
add it's path to the LD_LIBRARY_PATH environment variable (How-to).
For more information about the different SGI compilers:
type: man abi
or see the following books (on the Web):