Skip to main content

IAR Embedded Workbench for Arm 9.70.x

ADRL (64-bit mode)

In this section:
Syntax
ADRL register,expression
Parameters

register

The register to load, X0X30.

expression

A program-relative expression that evaluates to an address within the range -4 Gbytes to +4 Gbytes from the instruction.

Description

The ADRL pseudo-instruction loads a program-relative address into a register. It is similar to the ADR instruction. ADRL can load a wider range of addresses than ADR because it generates two data processing instructions. The assembler will not attempt to determine if the expression is within range. If the address is not within the range -4 Gbytes to +4 Gbytes, the linker will generate an error message and linking will fail.