Sandro Magi
2007-Aug-16 18:48 UTC
[LLVMdev] Do explicitly managed stack frames free the stack register?
Just out of curiosity, now that explicitly managed stack frames [1] are possible (given support in the code generators), is the stack register freed for other uses when the LLVM system stack isn't being used? Sandro [1] http://nondot.org/sabre/LLVMNotes/ExplicitlyManagedStackFrames.txt
Chris Lattner
2007-Aug-20 00:35 UTC
[LLVMdev] Do explicitly managed stack frames free the stack register?
On Aug 16, 2007, at 11:48 AM, Sandro Magi wrote:> Just out of curiosity, now that explicitly managed stack frames [1] > are possible (given support in the code generators), is the stack > register freed for other uses when the LLVM system stack isn't being > used?Nope, the stack pointer (e.g. ESP) is still needed for local spill code within the function, allocas, etc. -Chris
Rafael Espindola
2007-Aug-20 17:34 UTC
[LLVMdev] Do explicitly managed stack frames free the stack register?
> [1] http://nondot.org/sabre/LLVMNotes/ExplicitlyManagedStackFrames.txtInteresting. Something like this is more then sufficient for implementing by value structure passing at the llvm level :-) Cheers, -- Rafael Avila de Espindola Google Ireland Ltd. Gordon House Barrow Street Dublin 4 Ireland Registered in Dublin, Ireland Registration Number: 368047
Chris Lattner
2007-Aug-20 19:00 UTC
[LLVMdev] Do explicitly managed stack frames free the stack register?
On Mon, 20 Aug 2007, Rafael Espindola wrote:>> [1] http://nondot.org/sabre/LLVMNotes/ExplicitlyManagedStackFrames.txt > Interesting. Something like this is more then sufficient for > implementing by value structure passing at the llvm level :-)But unfortuantely, this assumes that everything has been converted to continuation passing style with only tail calls remaining... not good for the C ABI :) -Chris -- http://nondot.org/sabre/ http://llvm.org/