2015-08-22 1:31 GMT+02:00 Elzair <elzairthesorce...@gmail.com>:

> The other day I came across a page on Rosetta Code showing how to directly
> execute x86 instructions across several languages:
> http://rosettacode.org/wiki/Machine_code
>
>
I wrote an extension that allows to do that on Linux. You can check it out
here:
https://bitbucket.org/panicz/envy/src/

The file exec.c contains the code that exports a new procedure to Guile.
You can write analogous function using ffi with mmap, without resorting to
external modules, of course.

The file envy.scm contains the example usage.

Regards,
M.

Reply via email to