Problem:

Load a file with compiled machine code and execute it at runtime. Not to run other EXEs or DLLs, but pure compiled machine code saved in files. To be used like this:

Code:
void *ptr = LoadMachineCode("fileofpuremachinecode.code");
ExecuteCode(ptr);
Also a good way of compiling C/C++ to files of machine code.

I know of libs and such, but this is not a question about libs and dlls. But the question is how to load a file at runtime and execute its code. If there is a way...