-CPu


This option checks the consistency of the address to which the section is allocated.

[Specification format]

-CPU=suboption[, ...]
  suboption := type=address1-address2

 

-

Interpretation when omitted

The consistency of the address to which the specified section is allocated is not checked.

[Detailed description]

-

This option checks the consistency of the address to which the section is allocated.
An error will be output if the section allocation address for memory type type does not fit in the specified address range.

-

The items that can be specified as type are shown below.
An error will occur if any other item is specified.

ROm

Allocates the section to a ROM area.

RAm

Allocates the section to a RAM area.

FIX

Allocates the section to a fixed-address area (e.g. I/O area).

If the address range overlaps with ROM or RAM, the setting for FIX is valid.

-

Specify the start address and end address of the address range to check for consistency in hexadecimal as address1 and address2.

[Example of use]

-

The result is normal when section .text and section .bss are respectively allocated within the ranges from 0x100 to 0x1FF and from 0x200 to 0x2FF.
If they are not allocated within the ranges, an error will be output.

>rlink a.obj b.obj -start=.text/100,.bss/200 -cpu=ROM=100-1FF,RAM=200-2FF

[Remark]

[V1.01 or earlier]

-

If the -form={object|relocate|library} option, -strip option, or -device option is specified, this option will be invalid.

 

[V1.02 or later]

-

If the -form={object|relocate|library} option, or -strip option is specified, this option will be invalid.