[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 16 bit ints ..
- From: Mark Hamburg <mhamburg@...>
- Date: Tue, 20 May 2003 13:49:43 -0700
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
>