Crossware

Table of Contents        Previous topic       Next topic       

LINKER->Linker Command Line Options->Specify ROM Limits (/ROM:)

This option specifies the area of rom available for the program code.  The format is:

/ROM:[low address]:[high address]

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

(Do not use an 'H' after the hexadecimal numbers).

The default low address is zero and the default high address is 0FFFFH.  These values will be used in the absence of any /ROM directive.

An example directive is:

/ROM:0000:7FFF

This will cause the linker to place program code in the address range zero to 0X7FFF.

Multiple /ROM directives can be used to specify discontinuous regions of rom.  For example:

/ROM:0000:7FFF /ROM:A000:AFFF

tells the linker to use address ranges zero to 0X7FFF and 0XA000 to 0XAFFF.