I\'m trying to figure out how to execute machine code stored in memory.
I have the following code:
#include #include
Use the operating system for loading and executing programs.
On unix, the exec calls can do this.
Your snippet in the question could be rewritten:
#include #include #include int main(int argc, char* argv[]) { return execv(argv[1],argv+2); }