
Untitled
By: a guest on
Jun 26th, 2012 | syntax:
None | size: 0.88 KB | hits: 11 | expires: Never
146 void no_op(int a, int b) {
147 int y = 5;
148 int z = 9;
149 y += b;
150 z += a;
151 return;
152 }
153
154 _no_op:
155 pushl %ebp ;; save the base pointer (call frame pointer) from
156 ;; the caller, that is, the function that calls no_op
157
158 movl %esp, %ebp ;; create a new call frame by setting %ebp to TOP
159
160 subl $8, %esp Decrements the stack pointer to make room for a variable
161 movl $5, -4(%ebp) Loads y (5) into a register
162 movl $9, -8(%ebp) Moves the pointer and loads z (9) into a register
163 movl 12(%ebp), %edx
164 leal -4(%ebp), %eax
165 addl %edx, (%eax)
166 movl 8(%ebp), %edx
167 leal -8(%ebp), %eax
168 addl %edx, (%eax)