Re: Is there stack associated when a executing an inline function?



Richard Tobin wrote:

In article <12b8f0bd-7e79-486e-bdbf-b1e92a38ba2d@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Kaz Kylheku <kkylheku@xxxxxxxxx> wrote:

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.

But what would be the point?

It'd allow re-use of that memory by another (subsequent) inlined
procedure or function call. Waste not, want not.

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto/Projects/Monitor/
.



Relevant Pages