1
我剛剛開始學習Assembly。我一直在寫簡單的C編碼並將其編譯爲程序集。以下是非常簡單的一個。
C語言的表達
int main(){
int a;
a = 25;
return a;
}
大會
main:
pushl %ebp
movl %esp, %ebp
subl $16, %esp
movl $25, -4(%ebp)
movl -4(%ebp), %eax
leave
ret
我不明白的是,爲什麼16%,從ESP中減去。
我認爲這篇[維基百科文章](http://en.wikipedia.org/wiki/X86_assembly_language#Data_manipulation_instructions)有一篇關於這方面的文章。 – isaach1000
[意思是加上esp,-10在彙編中](http://stackoverflow.com/questions/11627007/meaning-of-add-esp-10-in-assembly) –