|
Hi there,
I have just got around to
compiling lua under a 16-bit compiler for a micro controller, i noticed there
were a few warnings, mostly related to the size of int being 16-bit, this meant
that in one of the log alogorithms a condition was always true. So what i
am wanting to know is whether or not there are any implications for compiling
lua on 16-bit system where the default size of an int is 16-bit. I have noticed
that there is a define which determines the number of bits in an integer and so
for, this appears to be used for the virtual machine stuff. But this is
just a preliminary look though. If anyone has implemented lua in a 16-bit
system and has had it successfully working it would be good to know if there are
any pitfalls or modifications that i have to make. I have thought about putting
in a "#define int long" but i am not sure on what speed penalties i will
suffer.
Cheers,
Andrew Stanley
Teirney
|