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: Re: wip-rtl native patch
Date: Mon, 21 Jan 2013 19:28:35 +0100	[thread overview]
Message-ID: <CAGua6m10-kmu6f7G205ZKD=Dv9cVZmgP9+zb18aKVQq0THd4bg@mail.gmail.com> (raw)
In-Reply-To: <87wqv6658u.fsf@pobox.com>

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

Hi,

As I understood my reason for doing this was that many closures point to
the same code fragment
and If we compile one of those closures the others will not benefit. So
therefore I stored the native
code at the beginning of the rtl code fragment and used this mechanism. I
have not gotten this nailed
though because I'm unsure how to treat this data correctly w.r.t. GC.
Currently I just keep a reference
to the native code to prevent garbage collection if I'm not miss-remember.
But perhaps I'm missing
something in this argument I would be glad to be wrong in this case :-). Of
cause if we compile the
module directly to native code this will be a non issue and I completely
agree with your approach.

Cheers!
Stefan


On Mon, Jan 21, 2013 at 2:21 PM, Andy Wingo <wingo@pobox.com> wrote:

> On Thu 09 Aug 2012 20:59, Stefan Israelsson Tampe <stefan.itampe@gmail.com>
> writes:
>
> > DO you think that this will do as an initial patch to wip-rtl in order
> > to introduce the possibility to
> > execute native code or JIT:ed code. We reserve the first two indexes in
> > the ip text area to fit
> > a pointer to native code to be executed.
>
> I would rather use a different tc7 and the existing fallback `apply'
> loop.  Note that this does not preclude JIT compilation: we can change
> the tc7 of an object at runtime.
>
> Cheers,
>
> Andy
> --
> http://wingolog.org/
>

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

  reply	other threads:[~2013-01-21 18:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09 18:59 wip-rtl native patch Stefan Israelsson Tampe
2013-01-21 13:21 ` Andy Wingo
2013-01-21 18:28   ` Stefan Israelsson Tampe [this message]
2013-01-21 19:06     ` Andy Wingo

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='CAGua6m10-kmu6f7G205ZKD=Dv9cVZmgP9+zb18aKVQq0THd4bg@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).