C++和G++手工开栈的=_=

微软的编译器(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));

 

posted on 2015-05-05 23:11  Stomach_ache  阅读(842)  评论(0编辑  收藏  举报

导航