RAD Studio (Common)
ContentsIndex
PreviousUpNext
Reserved address space for resources (Delphi)
Type  
OS  
Parameter  
Syntax  
Linux  
{$M reservedbytes} {$RESOURCERESERVE reservedbytes}  
Default  
 
{$M 1048576}  
Scope  
 
Global  

Remarks 

This directive is used in Linux programming only. For information about the $M ($MINSTACKSIZE and $MAXSTACKSIZE) directives in Windows, see the topic on Memory Allocation Sizes. 

Use the $M directive to increase or decrease the amount of extra address space reserved for resources. 

By default, the compiler reserves 1MB of address space, in addition to what the application actually uses at link time, for resources. This extra address space is provided to accommodate localized versions of the application that incorporate larger resource files than the original version. As long as there is sufficient reserved address space, you won't have to relink the entire executable to produce a localized version. 

For maximum portability between Windows and Linux platforms, you should use the long form of this directive $RESOURCERESERVE and not $M

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!