C++
#pragma comment(linker, "/STACK:102400000,102400000")
G++
int size = 256 << 20; // 256MB char *p = (char*)malloc(size) + size; __asm__("movl %0, %%esp\n" :: "r"(p));
#pragma comment(linker, "/STACK:102400000,102400000")
int size = 256 << 20; // 256MB char *p = (char*)malloc(size) + size; __asm__("movl %0, %%esp\n" :: "r"(p));
转载于:https://www.cnblogs.com/HarryGuo2012/p/4722784.html