guile-devel
[Top][All Lists]
Advanced

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

Re: Attempt to create an inline assembler for Guile


From: Ludovic Courtès
Subject: Re: Attempt to create an inline assembler for Guile
Date: Thu, 16 Jul 2015 21:17:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Sjoerd van Leent <address@hidden> skribis:

> I put my repository here:
>
> https://github.com/santidhammo/guile-assembler

Regarding executable pages, I think you can avoid C altogether by using
‘mmap’ from libc via the FFI:

  (define mmap
    (let* ((ptr  (dynamic-func "mmap" (dynamic-link)))
           (proc (pointer->procedure '* ptr (list ...))))
      (lambda (x y z)
        (pointer->bytevector (proc x y z) ...))))

Besides, that looks like a nice project!

Ludo’.




reply via email to

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