lua-users home
lua-l archive

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

> From: Chris Chapman 
> Sent: Monday, October 06, 2003 6:08 AM
> To: 'Lua list'
> Subject: RE: Lua on the PlayStation2
> Sorry, I thought immediately after I sent it that I should have stated
> version. We are using lua-4.0.1 which has double in a few places. On
> browsing over the 5.0 code it seems they have been fixed. :)
> We are hoping to upgrade to 5.0 as soon as possible, but when I tried
> last time there was an obscure crash and I couldn't easily track it in
> limited time available. Would I be right to hazard a guess that 5.0 is
> bit
> more PS2 friendly that 4.0.1 then? If so I will prioritise upgrading
> tracking this obscure GC/64-bit operation bug.

You should probably remove all traces of 64 bit-ness on PS2. This will
save memory and possibly make it run faster. In Lua 5.0 I think you just
need to define LUA_NUMBER as float in your compiler environment, as you
know PS2 doesn't do hardware doubles. long is 64 bit on PS2 so change
all instances of this to int. Go into llimits.h and change all