Re: Executing Arbitrary Machine Code in Guile

2015-08-25 Thread Elzair
Thank you very much everyone! Looking at envy has been very helpful. > On Aug 22, 2015, at 4:08 AM, Jan Wedekind wrote: > > Executing machine code basically just requires a call to mmap to make the > data executable. The calling code can be generated on the fly using ffi: > http://github.com/

Re: Executing Arbitrary Machine Code in Guile

2015-08-22 Thread Jan Wedekind
Executing machine code basically just requires a call to mmap to make the data executable. The calling code can be generated on the fly using ffi: http://github.com/wedesoft/aiscm On August 22, 2015 12:31:56 AM GMT+01:00, Elzair wrote: >The other day I came across a page on Rosetta Code showing

Re: Executing Arbitrary Machine Code in Guile

2015-08-22 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Aug 22, 2015 at 08:46:52AM +0200, Panicz Maciej Godek wrote: > 2015-08-22 1:31 GMT+02:00 Elzair : > > > The other day I came across a page on Rosetta Code showing how to directly > > execute x86 instructions across several languages: > > http:

Re: Executing Arbitrary Machine Code in Guile

2015-08-21 Thread Panicz Maciej Godek
2015-08-22 1:31 GMT+02:00 Elzair : > 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

Executing Arbitrary Machine Code in Guile

2015-08-21 Thread Elzair
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 For example, here is the code for Racket. #lang racket/base (require ffi/unsafe) ; set up access to racket internals (define