Keil Logo Arm Logo

C166 User's Guide

ASMEXPAND Compiler Directive

Abbreviation

AE

Arguments

None.

Default

ASMEXPAND

µVision

Options — C166 — 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-small

Keil logo
Important information

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