I wrote a program to compile a simple text program to a compiled executable… Is it possible that I can load an executable to memory an some how point a pc counter to the memory space at will?
Here is what I made that I would like to store the programs to memory for execution on demand… Kind of wanting to make a little web language like php but compile it… Just for learning.
http://spiceycurry.blogspot.com/2010/05/simple-compilable-programming-language.html
Build it into a shared library which are designed for dynamic loading. I sure there are a lot of headers that you need and a bunch of C style calling conventions you need to obey.
I recommend you write the extension in C, try binding that, and when that works, grab all the linkage assembler from the C compiler code generation phase.