[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Lua on mobile phone
- From: "Nijdam, Marc" <mnijdam@...>
- Date: Thu, 2 Mar 2006 15:30:44 -0800
I can attest to it being pretty easy in the BREW case. Some changes were
required to be able to easily override a lot of the stdlib functions
that in the BREW case are not quite used the same way (they're not
linked in but referenced indirectly).
[mailto:firstname.lastname@example.org] On Behalf Of Luiz Henrique
Sent: Thursday, March 02, 2006 3:19 PM
To: Lua list
Subject: Re: Lua on mobile phone
> I think it should be simple to provide my own custom allocator
This is trivial in 5.1 and pretty simple in 5.0
(you have to change 2 macros in lmem.c and recompile).
> Some mobile phone platforms don't provide a complete C standard
The Lua core tries to avoid as much as possible of the C standard
Not so with the Lua libraries, though...
> I guess it is possible to replace all double usage with equivalent
> fixed point operations.
This is simple in 5.1 because there are macros for all numeric
In 5.0 (and also in 5.1) you cal compile Lua to use int instead of
though I'm not sure that'd fit your needs.