3 ms·
> I use ~50 bytes of pre-compiled code so that it'll compile anywhere. To do that, I have to mark the block R|X. Memory is cheap; mmap 4K of R|W RAM, copy the
by bonzini 10y ago
> I use ~50 bytes of pre-compiled code so that it'll compile anywhere. To do that, I have to mark the block R|X.
Memory is cheap; mmap 4K of R|W RAM, copy the code, and mprotect it to R|X.