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:
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?
RTEMS is a little different because it's one big executable. I have a directory full of RTEMS libraries. Lua is just one library that I 'installed' in the library tree. To use Lua, I just link it into an example application and call their build system. Out the other end, I receive an EXE which contains the entire executable image - operating system and all at 5.3MB. (so cool).
I understand I can compile with luac, but I'm not sure how that gets included in the exe (in an *.a file?). I see srlua (thank you lua team) and was going to start playing with that, but thought I'd ask if there is anyone with experience before I go stumbling around the internet?
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.