Crossware

Table of Contents        Previous topic       Next topic       

LINKER->Linker Command Line Options->Specify Ram Limits (/RAM)

This option specifies the area of ram available for the program data.  The format is:

/RAM:[low address]:[high address]

[low address] and [high address] should be specified in hexadecimal.

The default low address is zero and the default high address is 0FFFFFFFFH.

Multiple /RAM directives can be used to specify discontinuous regions of ram.  When using multiple directives, be aware that the linker cannot divide a single section up and place parts of it in the different regions that you specify  a single section will be placed in a single region.  If a data section is too large for a region, then you will need separate your data into smaller sections. For assembler code you can do this using the SECTION or COMMON directives.  For C code you can do this using the data_seg and bss_seg pragmas.

The /RAM option is ignored if a linker script has been specified.