ECE 391 Lecture 4: Stack Frame
Document Summary
# read the age using one memory reference. Movl 4(%ebx, %esi, 8), %eax # 8 comes from the size of the structure, added 4 because name is offset 0, age is offset 4. Cmpl, %edi, %eax # check the max age, if it"s bigger than edi (everything we"ve seen so far, then update) eax <= edi. Cmpl %edx, %eax # check the min age. Done: # more code . after we go through all the structures. Int_max: . long 0x7fffffff, largest represntation, a little over 2 billion, all 1s except for sign bit. Code fragments are nice, but something something, turn them into a function to make it more useable. What is a calling convention? generally: rules for subroutine interface structure spacifically how information is passed into subroutine how information is returned to caller who owns registers. Often speicified by vendor so that different compilers" code can work together (it"s a.