Skip to main content

IAR Embedded Workbench for RL78 5.20

Call frame information directives for names blocks

In this section:
Syntax

Names block directives:

CFI NAMES name

CFI ENDNAMES name

CFI RESOURCE resource : bits [, resource : bits] …

CFI VIRTUALRESOURCE resource : bits [, resource : bits] …

CFI RESOURCEPARTS resourcepart, part[, part]

CFI STACKFRAME cfa resource type [, cfa resource type] …

CFI BASEADDRESS cfa type [, cfa type] …

Parameters

bits

The size of the resource in bits.

cfa

The name of a CFA (canonical frame address).

name

The name of the block.

namesblock

The name of a previously defined names block.

offset

The offset relative the CFA. An integer with an optional sign.

part

A part of a composite resource. The name of a previously declared resource.

resource

The name of a resource.

size

The size of the frame cell in bytes.

type

The segment memory type, such as CODE, CONST, or DATA. In addition, any of the memory types supported by the linker. It is only used for denoting an address space.

Description

Use these directives to define a names block:

Directive

Description

CFI BASEADDRESS

Declares a base address CFA (Canonical Frame Address).

CFI ENDNAMES

Ends a names block.

CFI FRAMECELL

Creates a reference into the caller’s frame.

CFI NAMES

Starts a names block.

CFI RESOURCE

Declares a resource.

CFI RESOURCEPARTS

Declares a composite resource.

CFI STACKFRAME

Declares a stack frame CFA.

CFI VIRTUALRESOURCE

Declares a virtual resource.

Table 133. Call frame information directives names block 


Example

Examples of using CFI directives

See also

Tracking call frame usage