Enlarge heapsize c++

后端 未结 2 1147
醉话见心
醉话见心 2021-01-27 23:49

is there some way to enlarge the heapsize of a c++ program? In android you can easily do that by declaring it as large in the manifestfile.

I encountered this problem wh

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-28 00:16

    C++ itself doesn't know what the "heap" is. This is an implementation issue, so you have to look into your compiler's documentation. Here's what a Google search for "MSVC heap size flag" found:

    http://msdn.microsoft.com/en-us/library/f90ybzkh.aspx

    Quoting from the MSDN page:

    The /HEAP option sets the size of the heap in bytes. This option is only for use when building an .exe file.

提交回复
热议问题