F.A.Qs Home ProblemSet Status Ranklist Contest LoginRegister
Notice:祝各位Oier新年快乐,Rp++!
大视野在线测评-欢迎您
[ New Thread ]
Problem 2435 >> 关于C++RE
xingzeyu2001 @ 2017-11-02 08:16:48
[ Quote ] [ Edit ] [ Delete ] 1#
可以用__asm手动开栈。在主函数开头加入如下语句:
int size = 16 << 20; // 16MB
char *p = (char*)malloc(size) + size;
__asm__("movl %0, %%esp\n" :: "r"(p));
由于BZOJ是32位评测机,所以用%esp而不是%rsp
[Top] [Previous Page] [Next Page]

HOME Back