define memory directive
Syntax
define memory with size = expr;Note
For reasons of backward compatibility, it is also possible to specify a name for the defined memory like this: define memory [ name ] with size = expr[ ,unit-size];. unit-size is an optional parameter that specifies how many bits or bytes each unit contains.
Parameter
| An expression (see Expressions in linker configuration files) that specifies the maximum possible amount of addressable memory—always counted from address zero. |
Description
The define memory directive defines a memory space with a given size, which is the maximum possible amount of addressable memory, not necessarily physically available. This sets the limits for the possible addresses to be used in the linker configuration file.
Note
This directive is optional and only relevant in 64-bit mode. It is recommended that you do not use it in 32-bit mode.
Example
/* Declare a memory space of four Gigabytes */ define memory with size = 4G;