cross-compilation & libgccjit
Basile Starynkevitch
basile@starynkevitch.net
Thu Jan 1 00:00:00 GMT 2015
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} ***
More information about the Jit
mailing list