Skip to main content

IAR Embedded Workbench for RH850 3.20.x

constseg

In this section:
Syntax
#pragma constseg[=__memoryattribute ]{SECTION_NAME|default}
Parameters

__memoryattribute

An optional memory attribute denoting in what memory the section will be placed; if not specified, default memory is used.

SECTION_NAME

A user-defined section name; cannot be a section name predefined for use by the compiler and linker.

default

Uses the default section for constants.

Description

Use this pragma directive to placeconstant variables in a named section. The section name cannot be a section name predefined for use by the compiler and linker. The setting remains active until you turn it off again with the #pragma constseg=default directive.

Example
#pragma constseg=__brel MY_CONSTANTS
const int factorySettings[] = {42, 15, -128, 0};
#pragma constseg=default