Share via


/HEAP (Windows CE 5.0)

Send Feedback

This option sets the size of the heap in bytes. This option is only for use when building a .exe.

/HEAP:reserve[,commit]

Remarks

The reserve argument specifies the total heap allocation in virtual memory. The default heap size is 1 MB. The linker rounds up the specified value to the nearest 4 bytes.

The optional commit argument is subject to interpretation by the operating system. Committed virtual memory causes space to be reserved in the paging file.

A higher commit value saves time when the application needs more heap space but increases the memory requirements and possibly the startup time.

Specify the reserve and commit values in decimal or C-language notation.

See Also

Linker Options

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.