扩栈代码

    int size = 256 << 20; // 256MB  
    char *p = (char*)malloc(size) + size;  
    __asm__("movl %0, %%esp
" :: "r"(p));
原文地址:https://www.cnblogs.com/TheRoadToTheGold/p/8252397.html