[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua stack alignment (was Re: Lua 5.1 (work6) now available)
- From: Mark Hamburg <mhamburg@...>
- Date: Thu, 19 May 2005 17:54:19 -0700
on 5/19/05 10:31 AM, Mike Pall at mikelu-0505@mike.de wrote:
> Adding __attribute__ ((__aligned__ (8))) to the 'Value' union
> (in lobject.h) is a Q&D solution to the problem. But of course
> your Lua stacks need 33% more space then (only a problem if
> you use lots of coroutines I guess).
Alignment is a tricky issue. Misaligned doubles can be immensely expensive
on some platforms. On the other hand, increased memory consumption bogs
everything down.
Mark