lua-users home
lua-l archive

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


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