Sollicitatievraag bij Aptiv

how does SP works?

Antwoord op sollicitatievraag

Anoniem

17 feb 2020

Stack Pointer : stores the address of the most recent entry that was pushed onto the stack. To push a value onto the stack, the stack pointer is incremented to point to the next physical memory address, and the new value is copied to that address in memory. To pop a value from the stack, the value is copied from the address of the stack pointer, and the stack pointer is decremented, pointing it to the next available item in the stack.