Skip to main content

IAR Embedded Workbench for RISC-V 3.40

Assembler control directives

In this section:
Syntax

/*comment*/

//comment

CASEOFF

CASEON

ERROR "message"

.option {norelax|norvc|pop|push|relax|rvc}

RADIX expr

Parameters

comment

Comment ignored by the assembler.

expr

Default base—default 10 (decimal).

message

Text to be displayed.

norelax

Disables the link-time instruction relaxation.

norvc

Prevents the assembler from converting normal and pseudo-instructions to compressed instructions. (Note that compressed instructions can still be used after .option norvc.)

pop

Restores the options saved using push.

push

Saves the current options to a stack for future restoration.

relax

Enables the link-time instruction relaxation.

rvc

Allows the assembler to convert normal and pseudo-instructions to compressed instructions. The is the default mode.

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

/*comment*/

C-style comment delimiter.

//

C++ style comment delimiter.

CASEOFF

Disables case sensitivity.

CASEON

Enables case sensitivity.

ERROR

Generates an error.

.option

Makes a setting that controls the operation of the assembler.

RADIX

Sets the default base on all numeric values.

No forward references

No external references

Absolute

Fixed

Table 131. Assembler control directives  


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

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

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