本博客已停止更新!请移步至louhc.github.io

「黑科技」增加栈的空间

如果爆栈了。。。。试试这个?? 我都没试过)

#pragma comment(linker, "/STACK:102400000,102400000")

int size = 256 << 20; // 256MB
char *p = (char*)malloc(size) + size;
__asm__("movl %0, %%esp\n" :: "r"(p));

posted @ 2018-12-27 07:44  louhc  阅读(317)  评论(0编辑  收藏  举报