[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Mysterious crash in patchlistaux() / getjump()
- From: Patrick Rapin <toupie300@...>
- Date: Thu, 21 Jul 2011 20:10:08 +0200
> I'm porting Lua 5.1.3 to an embedded device
I don't if your problem is related to that, but IMHO the major source
of crash of Lua in a embedded system is with the stack size.
On our printer firmware, the default stack size for each thread is 4
kB. This proved to be insufficient for threads using the Lua
interpreter: the compiler could eat up to 5kB of stack alone.
Increasing the stack to 8kB solved all problems.
BTW: it is true that Lua 5.2 is supposed to use much less stack? I
have not measured it yet.