Skip to main content
markmark9121
Associate II
December 29, 2012
Question

Loading user compiled modules

  • December 29, 2012
  • 1 reply
  • 531 views
Posted on December 29, 2012 at 20:09

I am looking for a way to have a simple system that runs a multi-thread main program on the processors memory and then has the ability to read a SD card and load user compiled modules into different threads and run them.

Can anyone point me in the basic direction on how to accomplish this?

I know that I need a fatfs and base program with threading, but the part that I don't know about is loading / running compiled modules ( I guess like a DLL ? )

Any help would be appreciated.

Dave
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    December 30, 2012
    Posted on December 30, 2012 at 05:19

    Most ARM compilers generate relocatable object files in ELF, if your not predisposed to creating your own format this perhaps would be a good starting point. Other hex and binary formats output by the linker typically have a fixed base address, which might be too inflexible for your purpose.

    Creating a simple ELF loader shouldn't be particularly hard, and the format is well documented.
    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..