|
|||||||||||
|
Technical Support On-Line Manuals Assembler Reference |
Assembler ReferenceIMPORT and EXTERN
These directives provide the assembler with a name that is not defined in the current assembly.
where:
The name is resolved at link time to a symbol defined in a
separate object file. The symbol is treated as a program address.
If If
The example tests to see if the C++ library has been linked, and branches conditionally on the result.
AREA Example, CODE, READONLY
EXTERN __CPP_INITIALIZE[WEAK] ; If C++ library linked, gets the address of
; __CPP_INITIALIZE function.
LDR r0,=__CPP_INITIALIZE ; If not linked, address is zeroed.
CMP r0,#0 ; Test if zero.
BEQ nocplusplus ; Branch on the result.
The following examples show the use of the EXTERN symA [SIZE=4] EXTERN symA [DATA, SIZE=4]
| ||||||||||
|
|||||||||||