Declares to the optimizing linker that a symbol in another module is to be referenced in this module.
The .extern directive declares to the optimizing linker that a symbol in another module is to be referenced in this module. |
To reference a symbol defined in another module, the .extern directive must be used to declare the symbol as an external definition. |
Note that if the second operand is specified, this specifies the size of the data indicated by the symbol. However, specifications of size are ignored (although including them has been allowed to retain compatibility with CX).
The function of this directive for declaring an external symbol does not differ from the function of the .public directive. Use this directive to declare a symbol without a definition in the specified file as an external symbol. Use the .public directive to declare symbols with definitions in the specified file as external symbols. |
No error is output even if a symbol declared with the .extern directive is not referenced in the module. |