[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.4.0 (rc3) now available: compilation tests with gcc / TinyCC
- From: Andrew Gierth <andrew@...>
- Date: Thu, 14 May 2020 22:21:37 +0100
>>>>> "Tony" == Tony Papadimitriou <tonyp@acm.org> writes:
Tony> With v5.4 however I get into the stack issues I have reported
Tony> that crash the tests. The same happens with MSVC (2013) unless
Tony> the -Ox option is used.
Tony> There is no optimization option (as was suggested) with TCC to
Tony> overcome this problem.
If your compiler can't optimize to the extent of doing register
allocation and avoiding stack temporaries, then the stack usage of
luaV_execute (which is called once per recursion level) will be much
larger than normal (in my tests, it could increase by over 10x). You
will therefore need to reduce LUAI_MAXCSTACK or use a linker option to
increase the allowed stack space.
--
Andrew.
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org