Keil Logo

ASMEXPAND Compiler Directive

Abbreviation

AE

Arguments

None.

Default

ASMEXPAND

µVision

Options — C251 — Misc Controls.

Description

The ASMEXPAND directive instructs the compiler preprocessor to expand all symbols used in ASM/ENDASM blocks. This is the default compiler setting.

Example
#pragma noasmexpand

#define  abc  1
#define  xx0  2
#define  xx1  3


#pragma asm
  abc equ 2     ; above 'abc' not expanded
  xx0 equ 10    ; above 'xx0' not expanded
#ifdef QQQ
  xx1 equ 20
#endif

#pragma endasm
  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.