F.A.Qs Home ProblemSet Status Ranklist Contest LoginRegister
Notice:1:五月份月赛定于5.27日12:30--17:30,欢迎大家来玩! 2:关于OJ的注册可看https://www.lydsy.com/JudgeOnline/wttl/thread.php?tid=5671
大视野在线测评-欢迎您
[ 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