Skip to main content

IAR Embedded Workbench for Arm 9.70.x

SBREL

In this section:
Syntax
SBREL expr
Precedence

1

Description

The expression must evaluate to a symbol s, with a possible addend a, written as s+a.

The result is the offset to s from the addressing origin of its output segment, plus the addend.

The result is s+a-base, if the origin of the output segment for s is base.

The normal usage is for the symbol s to be in .data, and to have base address of .data in R9.

Example

SBREL(array+4)->4 if array is placed first in its output segment.