Increase Stack Size on Windows (GCC)

后端 未结 4 703
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 15:20

Is there a way to increase the stack size of a Windows application at compile/link time with GCC?

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 16:03

    When creating threads you use the dwStackSize paremater, but I'm not sure how to change the size for the main thread, this indicates its in the exe's header, so it may be an option for the compiler/linker, else you need to find the relevant part of the header and change it yourself.

    http://msdn.microsoft.com/en-us/library/ms686774(VS.85).aspx

提交回复
热议问题