IBM AIX on RS/6000 Systems

The following table lists the procedures to compile programs on IBM RS/6000 systems running AIX.

Compiler
Compiler Command Line
GCC EGCS C
gcc -g -c program.c
GCC EGCS C++
g++ -g -c program.cxx
IBM xlc C
xlc -g -c program.c
IBM xlC C++
xlC -g -c program.cxx
IBM xlf Fortran 77
xlf -g -c program.f
IBM xlf90 Fortran 90
xlf90 -g -c program.f90
KAI C
KCC +K0 -qnofullpath -c program.c
KAI C++
KCC +K0 -qnofullpath -c program.cxx
KAI Guide C (OpenMP)
guidec -g +K0 program.c
KAI Guide C++ (OpenMP)
guidec -g +K0 program.cxx
KAI Guide F77 (OpenMP)
guidef77 -g -WG,-cmpo=i program.f
Portland Group HPF
pghpf -g -Mtv -c program.hpf

If TotalView supports threading, you should not define any of the following variables:

  • AIXTHREAD_DEBUG
  • AIXTHREAD_COND_DEBUG
  • AIXTHREAD_MUTEX_DEBUG
  • AIXTHREAD_RWLOCK_DEBUG

When compiling with KCC, you must specify the -qnofullpath option; KCC is a preprocessor that passes its output to the IBM xlc C compiler. It will discard #line directives necessary for source-level debugging if -qfullpath is specified. We also recommend that you use the +K0 option and not the -g option.

When compiling with guidef77, the -WG,-cmpo=i option may not be required on all versions because -g can imply these options.

When compiling Fortran programs with the C preprocessor, pass the -d option to the compiler driver. For example: xlf -d -g -c program.F

When compiling with any of the IBM xl compilers, if your program will be moved from its creation directory, or you do not want to set the search directory path during debugging, use the -qfullpath compiler option. For example:

xlf -qfullpath -g -c program.f
 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0