lua-users home
lua-l archive

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

A friend wrote this a while ago, might help illustrate how the cache works, and why alignment is important.

Edwin Eyan Moragas wrote:
hi list,

i was looking at the source and i found this in luaconf.h:

#define LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; }

i really don't understand the term 'alignment' as of yet.
tried looking for some kind of explanation of this in the net
to no avail.

anybody willing to explain this? links for resources would
also be greatly appreciated.

thank you.