[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cross-compiling Guile 2.0
From: |
Neil Jerram |
Subject: |
Re: Cross-compiling Guile 2.0 |
Date: |
Sun, 06 Mar 2011 11:03:06 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Andy Wingo <address@hidden> writes:
> On Sat 05 Mar 2011 20:47, Neil Jerram <address@hidden> writes:
>
>> In principle, how should Guile 2.0 be cross-compiled? I'm thinking
>> mostly of the part of the build that compiles all the installed
>> modules.
>
> I have never cross-compiled anything, so I really don't know.
>
> Ideally we could make a cross-compiling Guile that executed on the host,
> but produced .go files for the target.
>
> Hummmmmm. Does that mean that for cross-compile builds, that we should
> not add the $builddir to the LOAD_COMPILED_PATH? Probably so, right? A
> cross-compiler probably doesn't autocompile either. So then the
> cross-compiler receives as its inputs the source files from a project,
> then produces .go files for the target, but does not load .go files from
> the target.
>
> Does that sound right to you?
Thanks for your input on this.
Yes. In principle I think the cross-compiler could simultaneously
auto-compile, for itself, and non-auto-compile for the target, but
that's a bit mind-blowing and would require careful handling of what's
being written and read from where. Instead of that, we could do two
separate steps: one where the cross-compiler compiles for itself, and
one to compile for the target.
What architectural dependencies are there in the .go format? If there
aren't too many, a cross-compiler is probably the nicest solution,
because the other two options (QEMU, and compiling after installation on
the target) are probably going to be ridiculously slow.
Neil
- Cross-compiling Guile 2.0, Neil Jerram, 2011/03/05
- Re: Cross-compiling Guile 2.0, Andy Wingo, 2011/03/05
- Re: Cross-compiling Guile 2.0,
Neil Jerram <=
- Re: Cross-compiling Guile 2.0, Ludovic Courtès, 2011/03/06
- Re: Cross-compiling Guile 2.0, Andy Wingo, 2011/03/17
- Re: Cross-compiling Guile 2.0, Ludovic Courtès, 2011/03/18
- Re: Cross-compiling Guile 2.0, Andy Wingo, 2011/03/19
- Re: Cross-compiling Guile 2.0, Ludovic Courtès, 2011/03/20
- Re: Cross-compiling Guile 2.0, Andy Wingo, 2011/03/20
- Re: Cross-compiling Guile 2.0, Ludovic Courtès, 2011/03/20
- Re: Cross-compiling Guile 2.0, Andy Wingo, 2011/03/20
- Re: Cross-compiling Guile 2.0, Ludovic Courtès, 2011/03/21