You copied the Doc URL to your clipboard.

21.4 ALIAS

The ALIAS directive creates an alias for a symbol.

Syntax

ALIAS name, aliasname

where:

name

is the name of the symbol to create an alias for.

aliasname

is the name of the alias to be created.

Usage

The symbol name must alreadybe defined in the source file before creating an alias for it. Propertiesof name set by the EXPORT directiveare not inherited by aliasname,so you must use EXPORT on aliasname ifyou want to make the alias available outside the current sourcefile. Apart from the properties set by the EXPORT directive, name and aliasname areidentical.

Correct example

bazbar PROC    BX lr    ENDP    ALIAS  bar,foo    ; foo is an alias for bar    EXPORT bar    EXPORT foo        ; foo and bar have identical properties                       ; because foo was created using ALIAS    EXPORT baz        ; baz and bar are not identical                       ; because the size field of baz is not set

Incorrect example

    EXPORT bar    IMPORT car    ALIAS  bar,foo ; ERROR - bar is not defined yet    ALIAS  car,boo ; ERROR - car is externalbar PROC    BX lr    ENDP

Related reference

Was this page helpful? Yes No