Keil Logo

RESERVE Linker Directive

Abbreviation

RE

Arguments

RESERVE (range 〚, ...〛)

Default

No memory areas are reserved.

µVision

Options — L166L251LX51LA Misc — Reserve.

Description

The RESERVE directive reserves specified memory areas (range) and prevents the linker from locating anything in them. This directive may be used to skip over memory areas that are unavailable or that are used for special purposes (memory buffer, FIFO, and so on).

A warning message is generated if an absolute section uses a reserved memory area.

See Also

SEGMENTS

Example
L166 file1.obj RESERVE (4h-200h)

This example reserves memory from 0004h to 0200h.


L166 file2.obj RESERVE (0x200-0x3FFF, 0x10000-0x1FFFF)

This example reserves 0200h-3FFFh and 10000h-1FFFFh.

LX51 file1.obj RESERVE (C:0x1000-C:0x1FFF)

This example reserves CODE memory from 1000h to 1FFFh.

L251 file1.obj RESERVE (1000h-1FFFh)

This example reserves memory from 1000h to 1FFFh.

LA file1.obj RESERVE (0x100000-0x100FFF)

This example reserves memory from 0x100000 to 0x100FFF.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.