Keil Logo

EXTRN Assembler Statement

Arguments
EXTRN class (symbol <[>, symbol ...<]>)
Description

The EXTRN statement (which may appear anywhere in the assembler source file) specifies symbols that the current source file uses but which are defined in other object modules. The module where the symbols are defined must export them using PUBLIC statements. The EXTRN statement specifies the symbol by class.

Following is a list of valid classs:

type Description
ARM A symbol defined in 32-bit or ARM code memory.
CODE16 A symbol defined in 16-bit or THUMB code memory.
CODE32 A symbol defined in 32-bit or ARM code memory.
CONST A symbol defined in CONST memory.
DATA A symbol defined in DATA memory.
THUMB A symbol defined in 16-bit or THUMB code memory.

The linker resolves all external symbols.

See Also

EXTERN, PUBLIC

Example

None.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.