Fw: Lua was Re: Quickstart Build instructions

Chris Johns chrisj at rtems.org
Tue Apr 10 00:53:29 UTC 2018

On 10/04/2018 10:40, Gedare Bloom wrote:
> On Mon, Apr 9, 2018 at 4:17 PM, Russell Haley <russ.haley at gmail.com
> <mailto:russ.haley at gmail.com>> wrote:
>             I'd like to start with getting other Lua scripts running. My goal is
>             to load a library called penlight that's a few dozens of files. Is
>             there a utility for creating and loading resources? I'll also look
>             at compiling the files using the luac compiler, but that's outside
>             of rtems.
> No worries. There is evolving support (pretty mature by now) for dynamically
> loading object code, if that is what you mean: the Runtime Loader (RTL).  I
> don't have any experience with it though. Chris Johns is the expert on that topic.

The support is based around the standard calls 'dlopen' etc. You can load ELF
object files. You do need a symbol table in the kernel and a simple makefile
recipe can be found in the testsuite which works on the sparc simulator:


 (search for TEST_dl01 in the Makefile.am if the line has moved)

Note, the erc32 sim does not have access to a host's file system so you will
need to package the object files into a tar file just as the test does.


More information about the users mailing list