扩栈代码

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

 

posted @ 2018-01-09 17:02  TRTTG  阅读(339)  评论(0编辑  收藏  举报