SEGMENT_BEGIN

Supported by Ginmake 2.19+

[SEGMENT_BEGIN,<segment_name>]

Start a segment section. This allows C code to avoid placing a segment location on variables defined between SEGMENT_BEGIN and SEGMENT_END. Or particular use if C style structs are used to define the memory of a region.

Segments may not be nested.

Parameter Description

<segment_name> Name / symbol of the segment to match that in its SEGMENT definition

Example

1// [SEGMENT_BEGIN,SEG_NVM]
2uint32_t param1; // [,,,,,,,]
3uint32_t param2; // [,,,,,,,]
4uint32_t SEG_NVM param3; // [,,,,,,,] OK – SEG_NVM is same as scope
5uint32_t SEG_RAM param3; // ERROR – placed SEG_RAM within SEG_NVM
6// [SEGMENT_END,SEG_NVM]