From: Nala Ginrut <nalaginrut@gmail.com>
To: Sjoerd van Leent <svanleent@gmail.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: Attempt to create an inline assembler for Guile
Date: Thu, 25 Jun 2015 11:27:25 +0800 [thread overview]
Message-ID: <1435202845.12727.24.camel@Renee-desktop.suse> (raw)
In-Reply-To: <CACqzbVi-9OU84PvCGP7En7J+ivu1NXm=Ls_NQ16Co16y4QV8UQ@mail.gmail.com>
nice work!
I may take look at it closely.
And I would recommend you use FFI if you just want to get pagesize, it's
easier than writing bunch of C code:
=============================code========================
(use-modules (system foreign))
(define ffi (dynamic-link))
(define sysconf
(pointer->procedure int
(dynamic-func "sysconf" ffi)
(list int)))
(sysconf 30) ; 30 stands for _SC_PAGESIZE
==> 4096
==============================end=======================
Happy hacking!
On Wed, 2015-06-24 at 21:41 +0200, Sjoerd van Leent wrote:
> Hi All,
>
> In line with my will to create an assembler, I started first by being able
> to execute something in memory, using the memory-mapper strategy. I am
> aware not all platforms use the same mechanism, but this is a starting
> point.
>
> At a later point, an inline assembler can be used by a (more abstract) JIT
> engine
>
> I put my repository here:
>
> https://github.com/santidhammo/guile-assembler
>
> Met vriendelijke groet,
> Sjoerd
next prev parent reply other threads:[~2015-06-25 3:27 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 [this message]
2015-06-25 16:10 ` Sjoerd van Leent
2015-07-16 19:17 ` Ludovic Courtès
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=1435202845.12727.24.camel@Renee-desktop.suse \
--to=nalaginrut@gmail.com \
--cc=guile-devel@gnu.org \
--cc=svanleent@gmail.com \
/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).