lua-users home
lua-l archive

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


Am 10.04.2018 um 06:15 schröbte Russell Haley:
Hi,

Hi!


I've finally managed to get the pieces together to run Lua in the RTEMS
operating system. A big shout out to whoever lparam is:

https://github.com/lparam/rtems-liblua

Anyway, now that I can load a hello world string and iterate a table, I was
wondering about actually doing something with Lua. For my first attempt I
would like to load penlight. I'm using the sparc erc32 (default) build with
their emulator and it doesn't have a filesystem. errr... Help?

To be sure, I have no idea what I'm even looking for. I've asked a similar
question on the RTEMS mailing list and there is some information about
loading a tar based FS, as well as reading ELF binaries (?Really?). I'll be
doing some digging on those items, but any advice would be grand.

I'd use one of the various amalgamation scripts, put the resulting single big script into a char array, and load it from there. But a searcher that loads from a tar would be cool (and probably also useful for others) as well.


Cheers,

Russ


Philipp