stack pointer

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Mon Mar 7 03:05:32 EST 2016


On Mon, 07 Mar 2016 13:07:14 +0530, Nitin Varyani said:

> Where is the stack pointer for the current process stored in linux?

In the stack pointer register, of course. (And if the code was compiled
with -fomit-stack-pointer there isn't even one. :)

The fun and games starts when you talk about the stack for a process that
*isn't* currently active on a CPU....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160307/8010662c/attachment.bin 


More information about the Kernelnewbies mailing list