lua-users home
lua-l archive

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


Should some pieces of Lua such as the instruction size shift to using
stdint.h?

Mark

on 5/20/03 1:08 PM, Roberto Ierusalimschy at roberto@inf.puc-rio.br wrote:

>> I am considering using lua on a PS2 (playstation 2),
>> where long's are 64 bits. Will this be a problem ?
> 
> Lua should run without problems with 64-bit longs. To save space, you
> can redefine the `Instruction' type, defined in llimits.h (which is long
> to ensure a minimum of 32 bits):
> 
> /*
> ** type for virtual-machine instructions
> ** must be an unsigned with (at least) 4 bytes (see details in lopcodes.h)
> */
> typedef unsigned long Instruction;
>                  ^int^
> 
> -- Roberto
>