0
스택의 시작 주소 얻기 다음 pushl %의의 EBP 전에 ESP 인쇄 이유
executing assembly within a function in c++가능한 중복이
long getesp() {
__asm__("movl %esp,%eax");
}
void main() {
printf("%08X\n",getesp()+4);
}
이 스택이 설정되기 전에를 (, movl % esp, % ebp) 미리 감사드립니다.
'void main()'을 쓰지 말고 '** int main (int argc, char ** argv) **' –