ARM Linking Directives (Windows Embedded CE 6.0)

1/5/2010

The following ARM assembly directives link other files to the current assembly.

Directive Syntax Description

EXPORT

EXPORT symbol{[FPREGARGS,DATA,LEAF]}

Declares a symbol for use at link time by other, separate object files.

FPPREGARGS defines a function that expects fp arguments passed in fp registers.

DATAdefines a code-segment datum rather than a function or procedure.

LEAF causes asserts that call other functions.

Identical to the GLOBAL directive.

GET

GET filename

Includes an additional file named filenamewithin the current file assembly.

The included file can in turn use GET directives to include more files.

When assembly of the included file is complete, assembly continues at the line following the GET directive.

GLOBAL

GLOBAL symbol{
[FPREGARGS,DATA,LEAF]}

Declares a symbol for use at link time by other, separate object files.

FPPREGARGSdefines a function that expects fp arguments passed in fp registers.

DATAdefines a code-segment datum rather than a function or procedure.

LEAF causes asserts that call other functions.

Identical to the EXPORT directive.

IMPORT

IMPORT symbol{
WEAK=weak-symbol, {type=n}}

Provides the assembler with a name, symbol.

The assembly does not contain a definition for symbol, but resolves it at link time to a symbol defined in a separate object file.

The routine treats symbolas a program address.

INCLUDE

INCLUDE filename

Specifies a synonym for GET.

See Also

Concepts

ARM Assembler Directives