![]() |
.global |
Previous | Assembler Directives | Next |
Syntax: .global symbol
.global
makes the symbol visible to ld
. If you define
symbol in your partial program, its value is made available to
other partial programs that are linked with it. Otherwise,
symbol takes its attributes from a symbol of the same name
from another file linked into the same program.
Both spellings (.globl
and .global
) are accepted, for
compatibility with other assemblers. .xdef
is also accepted as a
synonym for .global
.