Setting Heap Size from gnatlink (GNAT User’s Guide for Native Platforms)

#### 7.4.8.29 Setting Heap Size from `gnatlink` ¶

Under Windows systems, it is possible to specify the program heap size from `gnatlink` using either of the following:

- `-Xlinker` linker switch

      $ gnatlink hello -Xlinker --heap=0x10000,0x1000

  This sets the heap reserve size to 0x10000 bytes and the heap commit size to 0x1000 bytes.

- `-Wl` linker switch

      $ gnatlink hello -Wl,--heap=0x1000000

  This sets the heap reserve size to 0x1000000 bytes. Note that with `-Wl` switch, you can’t also set the heap commit size because the comma is a separator for this switch.