unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: Attempt to create an inline assembler for Guile
Date: Thu, 16 Jul 2015 21:17:47 +0200	[thread overview]
Message-ID: <878uafdi90.fsf@gnu.org> (raw)
In-Reply-To: CACqzbVi-9OU84PvCGP7En7J+ivu1NXm=Ls_NQ16Co16y4QV8UQ@mail.gmail.com

Sjoerd van Leent <svanleent@gmail.com> 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’.




      parent reply	other threads:[~2015-07-16 19:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-24 19:41 Attempt to create an inline assembler for Guile Sjoerd van Leent
2015-06-25  3:27 ` Nala Ginrut
2015-06-25 16:10   ` Sjoerd van Leent
2015-07-16 19:17 ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878uafdi90.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).