Skip to main content

IAR Embedded Workbench for Arm 9.70.x

Assembler control directives

In this section:
Syntax

$filename

/* comment */

// comment

CASEOFF

CASEON

INCLUDE filename

LTORG

RADIX expr

Parameters

comment

Comment ignored by the assembler.

expr

Default base—default 10 (decimal).

filename

Name of file to be included. The $ character must be the first character on the line.

Description

These directives provide control over the operation of the assembler. For information about the restrictions that apply when using a directive in an expression, see Expression restrictions.

Directive

Description

Expression restrictions

$

Includes a file.

/*comment*/

C-style comment delimiter.

//

C++ style comment delimiter.

CASEOFF

Disables case sensitivity.

CASEON

Enables case sensitivity.

INCLUDE

Includes a file.

LTORG

Directs the current literal pool to be assembled immediately after the directive.

RADIX

Sets the default base on all numeric values.

No forward references

No external references

Absolute

Fixed

Table 155. Assembler control directives  


Use $ to insert the contents of a file into the source file at a specified point. $filename is an alias for #include "filename", see the section Including source files under C-style preprocessor directives. The $ character must be the first character on the line.

Use /*...*/ to comment sections of the assembler listing.

Use // to mark the rest of the line as comment.

Use INCLUDE to insert the contents of a file into the source file at a specified point. INCLUDE filename is an alias for #include <filename>, see the section Including source files under C-style preprocessor directives. Note that INCLUDE only searches in the system header directories.

Use LTORG to direct where the current literal pool is to be assembled. By default, this is performed at every END and RSEG directive. For an example, see LDR (ARM).

Use RADIX to set the default base for constants. The default base is 10.