lua-users home
lua-l archive

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


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.


As far as I've understood, it has to do with memory alignment.

There is some information at:
http://en.wikipedia.org/wiki/Data_structure_alignment


Jan Behrens

--
FlexiGuided GmbH
Johannistr. 12
10117 Berlin
Fon: [030] 9789.4550
Fax: [030] 9789.4551

www.flexiguided.de
info@flexiguided.de

Geschaeftsfuehrer:
Juergen Axel Kistner
Andreas Nitsche

Registergericht:
Amtsgericht Berlin-Charlottenburg

Registernummer:
HRB 97488 B

Ust-IdNr.:
DE814439999