public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: Basile Starynkevitch <basile@starynkevitch.net>
To: David Malcolm <dmalcolm@redhat.com>
Cc: jit@gcc.gnu.org
Subject: Re: cross-compilation & libgccjit
Date: Thu, 01 Jan 2015 00:00:00 -0000	[thread overview]
Message-ID: <55A7D127.40203@starynkevitch.net> (raw)
In-Reply-To: <1437060625.15571.18.camel@surprise>

On 07/16/2015 17:30, David Malcolm wrote:
> On Thu, 2015-07-16 at 11:10 +0200, Basile Starynkevitch wrote:
>> On 07/15/2015 17:03, David Malcolm wrote that he is working on:
>>> (a) libgccjit: adding support for cross-compilation (perhaps with a
>>> gcc_jit_target type).
>> If you do that, you really should change the name of your library. By
>> definition Just-In-Time compilation is
>> with the host same as the target and forbids the idea of
>> cross-compilation (which is always Ahead Of Time).
> I don't agree.  In my mind "Just-In-Time compilation" means doing the
> compilation when you're about to execute the result, rather than a long
> time in advance.
>
> Consider a 3D videogame, running on an x86_64 computer, which compiles
> OpenGL shader programs for a GPU.  You could have e.g.
>    host == x86_64-linux
>    target  == some radeon GPU, say
> which is clearly cross-compilation, but the GPU code in question is
> generated immediately before it is to be executed for the exact GPU
> attached to the motherboard, and uploaded to it from main memory, rather
> than being built ahead of time and packaged up as GPU binary with the
> game CPU binary.

Ok, I'm convinced, sorry for the noise.

But then, please explain that in your documentation. It is really not 
obvious!

Cheers.


-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***

  reply	other threads:[~2015-07-16 15:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-01  0:00 missing gcc_jit_context_new_rvalue_from_long_long etc....? Basile Starynkevitch
2015-01-01  0:00 ` David Malcolm
2015-01-01  0:00   ` cross-compilation & libgccjit Basile Starynkevitch
2015-01-01  0:00     ` David Malcolm
2015-01-01  0:00       ` Basile Starynkevitch [this message]
2015-01-01  0:00   ` missing gcc_jit_context_new_rvalue_from_long_long etc....? Basile Starynkevitch
2015-01-01  0:00   ` Basile Starynkevitch

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

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

  git send-email \
    --in-reply-to=55A7D127.40203@starynkevitch.net \
    --to=basile@starynkevitch.net \
    --cc=dmalcolm@redhat.com \
    --cc=jit@gcc.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).