| Post Reply | RetroFed Forum Forum Index » OCaml |
| Author | Message | ||
|---|---|---|---|
Serpent7776
programming.dev
Serpent7776@programming.devJoined: 2024-01-20 |
This allocates required number of pages using mmap, fills it with AMD64 instructions, changes the memory protections and execute the memory as code. This works fine on my machine, but I'm not sure if it's guaranteed to work in all cases. I assume it's safe to execute arbitrary asm code from OCaml. I'm not sure if the conversions I do are valid. |
||
| 1 Original | |||
| Post Reply |
Back to top |