Skip to main content

IAR Embedded Workbench for Arm 9.70.x

section

In this section:
Syntax
#pragma section="NAME"  

alias

#pragma segment="NAME" 
Parameters

NAME

The name of the section.

Description

Use this pragma directive to define a section name that can be used by the section operators __section_begin, __section_end, and __section_size. All section declarations for a specific section must have the same alignment.

Note

To place variables or functions in a specific section, use the #pragma location directive or the @ operator.

Example
#pragma section="MYSECTION" 
See also

Dedicated section operators, and Linking your application.