Chapter 9 Writing Machine Language Instructions and Directive Statements
Writing Directive Statements 173
9.4.15 global
Syntax
label operation operand
[name] global name(, name)...
Default settings
External reference when omitted = undefined label error
External declaration when omitted = undefined label error during linking
Functional description
This directive declares external references and external declarations.
For external references, the global directive declares that the names coded in the operand are from
other files.
For external declarations, the global directive declares that the names coded in the operand can be
referenced externally.
The global directive can be coded anywhere in a source programs.
Operand coding rules
Write the name coded in the label field as an operand. Generally this will be a program name.
The names are delimited with commas (,). Any number of operands can be coded.
When a specified name has been coded in a label field within the program, it will be considered an
external declaration. When it has been coded as operands, it will be considered an external reference.