Totalview® Reference Guide : PART III Platforms and Operating Systems : Chapter 9 Platforms and Compilers : Compiling with Debugging Symbols : Apple Running Mac OS X
Apple Running Mac OS X
On Mac OS, in all cases use the standard compiler invocation, just being sure to include the -g option.
Compiler
Compiler Command Line
Absoft Fortran 77
f77 -g program
.f f77 -g program.for
Absoft Fortran 90
f90 -g program.f90
GCC C
gcc -g program.c
GCC C++
g++ -g program.cxx
GCC Fortran
g77 -g program.f
IBM xlc C
xlc -g program.c
IBM xlC C++
xlC -g program.cxx
IBM xlf Fortran 77
xlf -g program.f
IBM xlf90 Fortran 90
xlf90 -g program.f90
On Mac OS X, you can create 64-bit applications using GCC 4 by adding the -m64 command-line option.