5.41 Segment Pragma

Use this pragma directive to define a section name.
Note: For Xc32, the section attribute must accompany an object.

Suggested Replacement

__attribute__(section())

Caveats

None.

Examples

Consider migrating IAR code such as:
#pragma segment="NAME"
to MPLAB XC codes similar to:
char stack[10000] __attribute__ ((section ("STACK"))) = { 0 };

Further Information

None.