-qstatsym

Category

Object code control

Pragma equivalent

None.

Purpose

Adds user-defined, nonexternal names that have a persistent storage class, such as initialized and uninitialized static variables, to the symbol table of the object file.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-nostatsym-.   
>>- -q--+-statsym---+------------------------------------------><

Defaults

-qnostatsym: Static variables are not added to the symbol table. However, static functions are added to the symbol table.

Predefined macros

None.

Examples

To compile myprogram.c so that static symbols are added to the symbol table, enter:
xlc myprogram.c -qstatsym