Stack frame
#include <stdio.h>
void HelloWorld(void){
printf("World !\n");
}
int main(void) {
printf("Hello ");
HelloWorld();
return 0;
} |----------------------------------|
| ^ |
| | |
| ... |
stack pointer --> | +------------------------------+ |
| | | |
| | HelloWord stack frame | |
| | | |
Base Pointer --> | +------------------------------+ |
| +------------------------------+ |
| | | |
| | main stack frame | |
| | | |
| +------------------------------+ |
| ... |
|----------------------------------|Prologue
Code example
Epilogue
Resume
Last updated