[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.0 metatable and stack safety
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 19 Nov 2002 17:42:15 +0000
> btw each "loop" in the call chain seems to consume something
> 700 bytes of (C++) stack space - luaV_execute appears to be the main
> consumer. This is all when compiling C++ with debugging options,
> I don't know if "release" options change this.
In my machine the chain seems to consume 256 bytes. That gives ~16 words
per function, a reasonably number (each function uses 2 words for ebp
and return address, plus 3~5 words for saving working registers, plus
its arguments, local variables, and extra working space). Maybe the
release option optmizes your use.
-- Roberto