I have done a bit of reading into JIT compiling code because I want to port and emulator to Windows Phone 8 and Windows RT but I have noticed that Microsoft has disallowed the VirtualProtect() and related APIs neccessary to execute a block of memory containing compiled code. I therefor thought it might be possible to compile the code before it needs to be launched and save it to storage. My question is though, would it be possible to execute external code on storage and if not, would it be possible for the program to expand itself with the new binaries that would then be executable on the next launch.
If the above won't work is there any way I can compile code on the device and the be able to execute it.
Also I am struggling to find reading material on the matter so if you do not have an answer to this could you atleast rever me to some relevant reading material.
Thanks.