[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua on ARM7
- From: bert <bestanf@...>
- Date: Mon, 15 May 2006 00:05:40 -0700 (PDT)
thanks a lot for the helpful replies. I tried compiling LUA and it is true that I end up at over 30K but less than 64K of code. that is compiling in thumb mode so I suspect that it will be even more if I try ARM mode. I have tried with the IAR EW compiler, still have to try the GCC.
Now, the firmware would be running LUA code in an interrupt. How would this be done to keep things thread-safe (nested interrupts?), and is it realistic to call a LUA function from an interrupt routine being called at 30kHz?
It somehow makes more sense to me to compile the LUA code on my host PC to something that can be run very efficiently on the ARM platform, like native code, but then I'm not sure how difficult it is to compile LUA code to native ARM directly.
Luiz Henrique de Figueiredo
> What parts of the LUA source code do I need for making
> this work and what can I safely remove?
> This is for Lua 4.0, but may get you started:
Yes, and Lua 5.x this is even easier. See etc/noparser.c
This will save you some 30% of the core code.
Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice.