lua-users home
lua-l archive

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


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). 

-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Luiz Henrique
de Figueiredo
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
library.

The Lua core tries to avoid as much as possible of the C standard
library.
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
operations.
In 5.0 (and also in 5.1) you cal compile Lua to use int instead of
double,
though I'm not sure that'd fit your needs.
--lhf