statsym

Applies to C Applies to C++

Purpose

Adds user-defined, nonexternal names that have a persistent storage class, such as initialized and uninitialized static variables, to the name list (the symbol table of objects).

Syntax


Syntax Diagram

Default

The default is to not add static variables to the symbol table. However, static functions are added to the symbol table.

Example

To compile myprogram.C so that static symbols are added to the symbol table, enter:

xlc++ myprogram.C -qstatsym

Related References

Compiler Command Line Options IBM Copyright 2003