Skip to main content

IAR Embedded Workbench for RL78 5.20

SFB section begin

In this section:
Syntax
SFB(section [{+|-}offset])
Precedence

2

Parameters

section

The name of a section, which must be defined before SFB is used.

offset

An optional offset from the start address. The parentheses are optional if offset is omitted.

Description

SFB accepts a single operand to its right. The operator evaluates to the absolute address of the first byte of that section. This evaluation occurs at linking time.

Example
            name    sectionBegin
            section MYCODE:CODE(2)  ; Forward declaration
                                    ; of MYCODE.
            section MYCONST:CONST(2)
start       dc32    sfb(MYCODE)
            end

Even if this code is linked with many other modules, start is still set to the address of the first byte of the section MYCODE.