When do we create base pointer in a function - before or after local variables?
问题 I am reading the Programming From Ground Up book. I see two different examples of how the base pointer %ebp is created from the current stack position %esp . In one case, it is done before the local variables. _start: # INITIALIZE PROGRAM subl $ST_SIZE_RESERVE, %esp # Allocate space for pointers on the # stack (file descriptors in this # case) movl %esp, %ebp The _start however is not like other functions, it is the entry point of the program. In another case it is done after. power: pushl