lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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