Declares to the optimizing linker that a symbol (other than bit symbols) in another module is to be referenced in this module.
Symbol field |
Mnemonic field |
Operand field |
Comment field |
[label:] |
.extern |
label-name[, absolute-expression ] |
[; comment] |
The .extern directive declares to the optimizing linker that a symbol in another module is to be referenced in this module. |
When referencing a symbol defined in another module, the .extern directive must be used to declare the symbol as an external reference. |
A label with the same name as the one specified by the first operand is declared as an external labelNote. |
Although this directive does not function any differently than an ".public" directive in that it declares an external label, if this directive is used to declare a label without a definition in the specified file as an external label, use the ".public" directive to declare labels with definitions in the specified file as external labels. |
No error is output even if a symbol declared with the .extern directive is not referenced in the module. |