lua-users home
lua-l archive

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


> 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