Compiling Programs

Before starting TotalView, compile your source code with the -g compiler option. This option tells your compiler to generate symbol table debugging information. For example:

cc -g -o executable source_program

For more information on compiling your program for TotalView, see Compiling Programs.

On some platforms, you may need to use additional compiler options. Refer to Compilers and Platforms for more information.

TotalView also lets you debug programs that were not compiled with the -g option or programs for which you do not have source code. For more information, refer to Examining Source and Assembler Code.

When TotalView reads a file, it uses the file's extension to determine the programming language that you used to write the file's contents, as shown in the following table.

File Extension
Source Language
.cxx, .cc, .cpp, .C, .hxx, .H
C++
.F, .f, .F90, .f90
FORTRAN 77 or Fortran 90
.hpf, .HPF
HPF
All others
C

TotalView identifies a program as FORTRAN 77 or Fortran 90 when:

  • The compiler's debugging information includes the programming language that you used.
     
  • The source file name has an .f90 or .F90 suffix.
     
  • The code uses Fortran 90 features such as assumed shape arrays or pointers.

If TotalView cannot identify a source file's language, it assumes that the source language is C. If this causes problems, you will need to change the file's extension to one that TotalView recognizes.

 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0