unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: wip-rtl native closure creation
Date: Sun, 5 Aug 2012 17:19:22 +0200	[thread overview]
Message-ID: <CAGua6m3CTn3Sa9L82YkCEYFVKk-5w5yrPvuK+5ysCCoS0ZRt8w@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

Hi,

I was thinking how to mix rtl-VM and native compilation with respect to
closure creation

currently in the code we layout the program as

((nfree :16 | flags:8 | ?:7 | tag:0), code, freevar1 ....)

Then at closure creation we just set first slot, the code to point to a
relative adress relative
ip e.g. we just need 24 bits, and finally the free-vars is handled.

The thing to think of here is how to introduce a reference to native code,
if we add an extra slot
in the program data structure as currently down in the old program (not rtl
programs) definition, then
we must do some heavy magic to map vm-code to native code. Probably it is
best to have the first
qword / dword in the code to be 0 or the native adress e.g. I propose to
add that feature to the rtl-branch.

/Stefan

[-- Attachment #2: Type: text/html, Size: 853 bytes --]

             reply	other threads:[~2012-08-05 15:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-05 15:19 Stefan Israelsson Tampe [this message]
2012-08-06  9:32 ` wip-rtl native closure creation Andy Wingo
2012-08-06  9:39   ` Sjoerd van Leent Privé
2012-08-06 11:44     ` Noah Lavine
2012-08-06 13:01       ` Andy Wingo
2012-08-06 13:00     ` Andy Wingo
2012-08-06 17:46   ` Stefan Israelsson Tampe

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=CAGua6m3CTn3Sa9L82YkCEYFVKk-5w5yrPvuK+5ysCCoS0ZRt8w@mail.gmail.com \
    --to=stefan.itampe@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=wingo@pobox.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).