Re: Allocating Executable Memory

2010-06-06 Thread Andy Wingo
On Sat 05 Jun 2010 20:28, Noah Lavine writes: > It seems like the right solution is to give the GC system the ability > to manage executable memory at the user's request, but that will > require some modifications. > > So, people who are familiar with the GC system, where should those > modificat

Re: Allocating Executable Memory

2010-06-06 Thread Ludovic Courtès
Hi Noah! Noah Lavine writes: > The question is, how does one modify the Guile memory allocation > system so that you can request that some memory be executable? Currently you can’t. You’d need mmap(3) and/or mprotect(3) bindings, which would probably be useful anyway, though there are portabil

Allocating Executable Memory

2010-06-05 Thread Noah Lavine
This issue is somewhat related to the question of how to build a JIT, but will also apply later when we try to attach GCC or some other system to Guile. The question is, how does one modify the Guile memory allocation system so that you can request that some memory be executable? You could make al