Re: Is there stack associated when a executing an inline function?
- From: jacob navia <jacob@xxxxxxxxxx>
- Date: Fri, 29 Feb 2008 21:35:38 +0100
Kaz Kylheku wrote:
On Feb 29, 11:08 am, jacob navia <ja...@xxxxxxxxxx> wrote:It would be completely weird that in an inline procedure the compiler
would save the current stack pointer and establish a new stack
frame since there is no function call.
However, it wouldn't be weird at all if the inlined procedure simply
moves the stack pointer by some delta to enlarge the current frame,
then references all of its locals with respect to the current frame,
and then moves the stack pointer back by the same delta upon
termination to release the storage.
That is normal, but that is not a stack frame!
That is just increasing the stack, like when you use
alloca().
That function (alloca()) doesn't create a stack frame.
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
.
- Follow-Ups:
- Re: Is there stack associated when a executing an inline function?
- From: Keith Thompson
- Re: Is there stack associated when a executing an inline function?
- References:
- Is there stack associated when a executing an inline function?
- From: Mahesh
- Re: Is there stack associated when a executing an inline function?
- From: jacob navia
- Re: Is there stack associated when a executing an inline function?
- From: Keith Thompson
- Re: Is there stack associated when a executing an inline function?
- From: jacob navia
- Re: Is there stack associated when a executing an inline function?
- From: Micah Cowan
- Re: Is there stack associated when a executing an inline function?
- From: jacob navia
- Re: Is there stack associated when a executing an inline function?
- From: Kaz Kylheku
- Is there stack associated when a executing an inline function?
- Prev by Date: Re: Is there stack associated when a executing an inline function?
- Next by Date: Re: calculating length of an substring
- Previous by thread: Re: Is there stack associated when a executing an inline function?
- Next by thread: Re: Is there stack associated when a executing an inline function?
- Index(es):
Relevant Pages
|