Tag: tdm mingw

GCC在x86上的一个空程序的输出输出,win32

我写空的程序来惹恼从stackoverflow编码器,地狱。 我只是在探索GNU工具链。 现在下面可能对我来说太深了,但为了继续空的程序传奇,我已经开始研究C编译器的输出,即GNU消耗的东西。 gcc version 4.4.0 (TDM-1 mingw32) test.c的: int main() { return 0; } gcc -S test.c .file "test.c" .def ___main; .scl 2; .type 32; .endef .text .globl _main .def _main; .scl 2; .type 32; .endef _main: pushl %ebp movl %esp, %ebp andl $-16, %esp call ___main movl $0, %eax leave ret 你能解释一下这里发生了什么? 这是我的努力来理解它。 […]