HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
A global symbol is one that is visible by name across translation unit boundaries. A static
symbol is one that is visible by name only within a single translation unit but is not
associated with a particular procedure activation. A locally defined symbol is a global
or static symbol with a definition in the translation unit from which it is being referenced.
-Bdefault
-Bdefault
Global symbols are assigned the default export class. These symbols may be imported
or exported outside of the current load module. The compiler will access tentative and
undefined symbols through the linkage table. Any symbol that is not assigned to another
export class through use of another -B option will have the default export class. The
-Bdefault option may also be used on a per symbol basis to specify exceptions to
global -Bprotected, -Bhidden, and -Bextern options.
Usage:
-Bdefault=symbol[,symbol...]
The named symbols are assigned the default export class.
-Bdefault:filename
The file indicated by filename contains a list of symbols, separated by spaces or
newlines. These symbols are assigned the default export class.
-Bextern
-Bextern
The specified symbols, or all undefined symbols if no list is provided, are assigned to
default export class. Additionally, the compiler will inline the import stub for calls to these
symbols. No compile time binding of these symbols will be done. All references to these
symbols will be through the linkage table, so an unnecessary performance penalty will
occur if -Bextern is applied to a listed symbol that is resolved in the same load module.
Usage:
-Bextern=symbol[,symbol...]
The named symbols, or all symbols if no list is provided, are assigned the default export
class. Use of list form overrides the default binding of locally defined symbols.
-Bextern:filename
The file indicated by filename is expected to contain a list of symbols, separated by
spaces or newlines. These symbols are assigned the default export class.
-Bhidden
-Bhidden
The specified symbols, or all symbols if no symbols are specified, are assigned the hidden
export class. The hidden export class is similar to the protected export class. In addition,
108 Command-Line Options