How to allocate some executable memory in Windows? lazarus / 34-Windows ---------------------------------------------------------------------- pik33 · 2015-11-26 11:18 I want to have some place in memory where my program will generate some machine code (something like JIT compiler) and then execute it. There are system functions in Linux (mmap/fpmmap) for this purpose - how to replace them in Windows? ---------------------------------------------------------------------- Cyrax · 2015-11-26 12:15 VirtualAlloc : https://msdn.microsoft.com/en- us/library/windows/desktop/aa366887(v=vs.85).aspx