Using the stack from inline assembly

Florian Weimer fweimer@redhat.com
Tue Dec 13 07:13:00 GMT 2016


Is it possible to use the stack from inline assembly?  I'm particularly 
interested in i386 and x86_64, and push/pop instructions and function calls.

Will GCC automatically disable use of the red zone on x86_64 if inline 
assembly is used, or at least assume it's clobbered by inline assembly? 
If not, how is this supposed to work if it does at all?

Thanks,
Florian

PS: In case you wonder: Torvald an I found some relevant code in glibc.



More information about the Gcc-help mailing list