안녕하세요..
음 질문이 있는데요..
printf 를 이용해서 변수를 출력할때..
movl $1, -4(%ebp)
movl $2, -8(%ebp)
pushl -8(%ebp)
pushl -4(%ebp)
이렇게 하는 것이 있는 반면.. ( 문서 예제입니다. )
실제로 gcc 에서 -S 옵션으로 컴파일해보면..
[code:1]
12 movl $1, -4(%ebp)
13 movl $2, -8(%ebp)
14 movl -8(%ebp), %eax
15 movl %eax, 8(%esp)
16 movl -4(%ebp), %eax