so_alignment directive
Syntax
so_alignment alignment;
Parameters
| The alignment to add to the address of the first byte of the RAM part of the shared object. |
Description
A shared object consists of two parts, a ROM part that starts on offset 0, and a RAM part that starts after the last ROM byte. The address of the first RAM byte has a constant—so_alignment—added to it. Use this directive to set the value of this constant. By default, the value is 0x1000.
Some operating systems require a specific alignment for their shared objects. Refer to the documentation for the operating system you are using.
Example
so_alignment 0x2000;
If the last ROM byte was placed on offset 0x133, the first RAM byte will be placed on offset 0x134. If the alignment is 0x2000, the address of the first RAM byte will be 0x2134—the offset plus the alignment.