Skip to main content

IAR Embedded Workbench for RH850 3.20.x

SFE section end

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

2

Parameters

section

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

offset

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

Description

SFE accepts a single operand to its right. The operator evaluates to the address of the first byte after the section end. This evaluation occurs at linking time.

Example
            name    sectionEnd
            section MYCODE:CODE(2)  ; Forward declaration
                                    ; of MYCODE.
            section MYCONST:CONST(2)
end         dc32    sfe(MYCODE)
            end

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

The size of the section MYCODE can be achieved by using the SIZEOF operator.