Sorry if the title is a little obscure, I am not a native speaker and had a bit of trouble formulating my idea...
Assuming I have all the necessary functions and objects for a collection of procedures to be executed compiled and created in memory and that I know their addresses and sizes, how can I control the flow of the program with a pseudo "binary" file that is basically a script that says "push this data into this function's address, call this function address, push the returned value into this function address" and so on...
Basically I need to process pseudo "machine" code to access and dynamically control a collection of interconnected objects and static logic through their memory addresses.
Thanks!
EDIT: Please, post a few code snippets before closing my question as a duplicate to a question that doesn't really provide the specific information I need.
EDIT2: Added this from a comment below, possibly it will bring more clarification to my question:
Instead of compiling entire programs I try to use pre-compiled components to create dynamic objects on the go. The trees of objects can serialize to disk and be recreated in an instant (allocating the entire tree in a pool rather than object by object) so I have a way to create a dynamic program, save it to disk and reconstruct it in memory, with all the design time identifiers substituted with their addresses. NOW all I need is a way to make that entire program structure run.