was just pointed at this, i will add it to my stack for the next 1-2 days, i'll let you know when i have done it :-)
--- In [email protected], John <[EMAIL PROTECTED]> wrote: > > cool.... > > i'll include your lua port into the next release of my sdk patch > > > uhf_123 schrieb: > > > > Hello, > > > > I first posted this back in March and thought I would mention it again > > for anyone who joined since then: > > > > I've been experimenting with Lua 5.1 http://www.lua.org > > <http://www.lua.org> on the > > Fox Board. Lua is a light-weight programming language developed > > at TecGraf in Brazil and is fairly mature. It compiles without > > modification on many platforms including the Fox Board as it's written > > in ansi-c. The changes I made to compile Lua are as follows: > > > > The only makefile I changed was in the src folder. I added the usual: > > > > AXIS_USABLE_LIBS = GLIBC UCLIBC > > include $(AXIS_TOP_DIR)/tools/build/Rules.axis > > > > to the top, I removed the CC=gcc option and added -s to MYLDFLAGS (to > > strip debugging info). I created a fox target: > > > > fox: $(MAKE) all MYCFLAG S="-DLUA_USE_DLOPEN" MYLIBS="-Wl,-E -ldl" > > > > This also ensures that Lua is built to use dynamic libraries. Then run > > - make fox. Two executables, lua and luac which are both about 100kb > > are produced, you only need lua. See > > http://www.sophonix.com/articles/foxboard.asp > > <http://www.sophonix.com/articles/foxboard.asp> > > > > Lua is extremely extensible and various library extensions exist for > > things such as sockets and file system matters. I think for many > > people looking for a c alternative, this could be what your looking > > for. It's fast to write and execute and a much better bet than trying > > to get some version of Java J2ME running. Why not give it a try. More > > info and links: http://en.wikipedia.org/wiki/Lua_programming_language > > <http://en.wikipedia.org/wiki/Lua_programming_language> > > > > Simon > > > > >
