Global Scope Declaration Directive

References to symbols with a global scope are resolved within the object file in which the symbols are declared, and within other object files. Global symbols with the same name in different object files refer to the same entity.

To declare one or more symbols with a global scope, use the .global directive. These symbols are flagged as global symbols for the linkage editor. The .global directive has the following format:

 

.global    name,name, ...

Where:

name

Represents a symbol name.