Skip to main content

IAR Embedded Workbench for Arm 9.70.x

Value assignment directives

In this section:
Syntax

label = expr

label ALIAS expr

label ASSIGN expr

label DEFINE const_expr

label EQU expr

label SET expr

label SETA expr

label VAR expr

Parameters

const_expr

Constant value assigned to symbol.

expr

Value assigned to symbol or value to be tested.

label

Symbol to be defined.

Description

These directives are used for assigning values to symbols:

Directive

Description

=, EQU

Assigns a permanent value local to a module.

ALIAS

Assigns a permanent value local to a module.

ASSIGN, SET, SETA,VAR

Assigns a temporary value.

DEFINE

Defines a file-wide value.

Table 150. Value assignment directives