[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cross-compiling Guile 2.0
From: |
Ludovic Courtès |
Subject: |
Re: Cross-compiling Guile 2.0 |
Date: |
Fri, 18 Mar 2011 11:17:05 +0100 |
User-agent: |
Gnus/5.110013 (No Gnus v0.13) Emacs/23.3 (gnu/linux) |
Hello Andy!
Andy Wingo <address@hidden> writes:
> On Sun 06 Mar 2011 23:12, address@hidden (Ludovic Courtès) writes:
>
>> 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.
>>
>> Guile 2.0 can only be cross-compiled when the endianness and word size
>> of the host and target match (because the bytecode generation cannot be
>> parameterized by these.)
>
> You know, I think it's actually just endianness right now; I don't see
> where word size comes into it, except for the cookie.
Oh, good.
> Anyway, in the future when we do AOT compilation, this question will be
> more serious. (I would like to do AOT stuff this year.) So, following
> the autoconf manual ("Specifying Target Triplets"), we would have build
> == host, but target == the arm triple; so we would need
> `target-endianness' (and possibly `target-word-size') in the compiler.
Yes.
> Where do you think we should put these, given that you don't want them
> in (rnrs bytevectors)? :-)
I would add a ‘current-bytecode-endianness’ fluid in (language assembly
compile-bytecode). The ‘compile’ procedure would have an optional
‘endianness’ parameter, which would set this fluid. And ‘guile-tools
compile’ would have a command-line argument to specify the target
endianness.
WDYT?
Thanks,
Ludo’.
- 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, 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 <=
- 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
- Re: Cross-compiling Guile 2.0, Andy Wingo, 2011/03/21
Re: Cross-compiling Guile 2.0, Jan Nieuwenhuizen, 2011/03/16