Allocating Executable Memory

Vladimir Panteleev vladimir at thecybershadow.net
Tue Jul 31 19:27:20 PDT 2012


On Tuesday, 31 July 2012 at 17:23:08 UTC, Maxime Chevalier wrote:
> New to the D language here. I'm working on a tracing JIT 
> compiler and will need to allocate chunks of memory that are 
> marked as executable.
>
> Is there a standard way of doing this in D, or do I need to 
> directly call into mprotect? If I'm going to be calling 
> mprotect, what's the cleanest way to do that, do I need to 
> declare my own prototype for the function and its flags, or 
> should I write some C code that does the call?
>
> Thanks for your help.

Hope this helps:
http://stackoverflow.com/a/8656294/21501


More information about the Digitalmars-d mailing list