I'm not looking to execute arbitrary code in someone else's program. Instead, I'm trying to create a runtime compiler, that generates code, and then transfers execution to it. I'll probably look at various assemblers to figure out what instructions to generate, etc.,
but once I have everything in memory, is there a way I can transfer execution to the location of a pointer in C or C++?
Just FYI, I don't care if its x86 specific, because even if the method is not, the code I generate will be.