unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Noah Lavine <noah.b.lavine@gmail.com>
To: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
Cc: "Ludovic Courtès" <ludo@gnu.org>, guile-devel@gnu.org
Subject: Re: patching gcc to allow other calling conventions
Date: Mon, 18 Jun 2012 18:30:20 -0400	[thread overview]
Message-ID: <CA+U71=Pa6+XaOqg0UQCQVWh24nCtk1vyHSB0ADpFSLc9xqz8Vg@mail.gmail.com> (raw)
In-Reply-To: <CAGua6m1VjZpk1V-V=UytqdBd0MJ4S9QLCJMX47vy5ShCSRhZ5w@mail.gmail.com>

Hello,

> But the used sbcl derivative although not gnu is either in the public domain
> or bsd so we should be able to publish what we are doing. I prefere now to
> start working on a simple jit scheme for the fun of it, because it is a good
> learning experience and that getting results are a good driver to continueu.

A JIT would be a good thing for Guile to have. I worked on a JIT a
while ago, and I found that the hard part was not generating machine
code or connecting it to the VM - both of which it looks like you've
done - but making the JIT engine understand all of the VM
instructions. You could just hard-code them all, but then you've got a
complete duplicate of vm-engine.c with exactly the same information,
but in different syntax. So I thought I wanted some way to generate
the JIT from vm-engine.c, but that requires parsing C code. That's a
capability I want Guile to have in general, but I haven't made it
happen yet.

What do you think about this? Would you just want to maintain the JIT
engine separately from vm-engine.c, or would you like to automatically
generate it?

(Note: you could also generate vm-engine.c and your JIT from some
third source, but I think we rejected that for being too complicated.
It would certainly make the build process more difficult.)

Noah

> /stefan
>
> Den 18 jun 2012 02:43 skrev "Noah Lavine" <noah.b.lavine@gmail.com>:
>
>> Hello,
>>
>> > Did you consider starting from GNU/MIT Scheme?  It supports only IA32
>> > and x86_64, I think, but it’s in Scheme, and it’s GNU.
>>
>> Actually, that's an interesting thought in general. I looked at MIT
>> scheme a bit a long time ago, but I believe it uses two intermediate
>> languages, a high-level one similar to Tree-IL and a low-level one
>> that I don't know much about. We might be able to turn Tree-IL into
>> the high-level one and use their compiler infrastructure. Since
>> they're a GNU project, there might not be copyright issues.
>>
>> However, I'm not sure if this has advantages over just building it
>> ourselves. And I don't know if the MIT Scheme developers would like
>> this or not.
>>
>> Noah
>>
>



  reply	other threads:[~2012-06-18 22:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-15 18:47 patching gcc to allow other calling conventions Stefan Israelsson Tampe
2012-06-17 21:54 ` Ludovic Courtès
2012-06-18  0:43   ` Noah Lavine
2012-06-18 16:59     ` Stefan Israelsson Tampe
2012-06-18 22:30       ` Noah Lavine [this message]
2012-06-18 22:55         ` Ludovic Courtès
2012-06-21 12:32         ` Stefan Israelsson Tampe
2012-06-21 17:14           ` Daniel Krueger
2012-06-21 17:50             ` Stefan Israelsson Tampe
2012-06-21 17:57               ` Daniel Krueger
2012-06-21 18:53                 ` Stefan Israelsson Tampe
2012-06-21 21:01             ` 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='CA+U71=Pa6+XaOqg0UQCQVWh24nCtk1vyHSB0ADpFSLc9xqz8Vg@mail.gmail.com' \
    --to=noah.b.lavine@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=stefan.itampe@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).