guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Executing Arbitrary Machine Code in Guile


From: Panicz Maciej Godek
Subject: Re: Executing Arbitrary Machine Code in Guile
Date: Sat, 22 Aug 2015 08:46:52 +0200

2015-08-22 1:31 GMT+02:00 Elzair <address@hidden>:
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

[Prev in Thread] Current Thread [Next in Thread]