[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Precompiled multiplatform code (ARMxPC)
- From: "Saulo Tauil" <saulot@...>
- Date: Thu, 6 Aug 2009 21:16:07 -0300
Is there some way to make it "more" interchangeable?
Would it work?
-Using the same version of lua compiler.
-Limit to platforms with the same sizeof(int), sizeof(size_t),
sizeof(Instruction).
-Use always int32 as lua_number type (I would never use float in this case)
-Make lua "endianess-proof" like java.
Maybe the endianess is the most serious issue. I already have to do
conversions to communicate between different terminals.
If it's not possible... Is there a cross-compilation method?
It would be impossible to compile everything inside the terminal. It has not
much memory and there isn't a way to read its files.
Thks,
Saulo Tauil
-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Peter Cawley
Sent: quinta-feira, 6 de agosto de 2009 20:45
To: Lua list
Subject: Re: Precompiled multiplatform code (ARMxPC)
On Fri, Aug 7, 2009 at 12:45 AM, Saulo Tauil<saulot@muitofaciltec.com.br>
wrote:
> I think that the lua compiled binary is platform independent, right?
Precompiled chunks are dependant upon several factors:
* Lua version
* Endianness
* sizeof(int)
* sizeof(size_t)
* sizeof(Instruction) (which is typically a typedef onto lu_int32)
* lua_Number type