> On Nov 29, 2014, at 4:20 AM, Tristan Gingold <[email protected]> wrote:
> ...
>> As a workaround, I tried building an x86 version of GHDL using
>> --target=i386-linux-gnu, but I got assembly errors in
>> vhdl/grt/config/i386.S, which shows it's 32 bits code compiled as 64
>> code. This sounds like a bug in the build system. Is this file intended
>> to be built for the target, in which case it should be build using the
>> target compiler, or for the host, in which case it should be 64 bits
>> assemly...
>
> I think you need to configure with --build=i386-linux-gnu.
But that doesn’t mean the output is 32 bit Intel; it means the compiler is
being built on a 32 bit Intel system.
In general, the GCC machinery allows you to build on X a compiler that will run
on Y and produce code for Z, with any choice you like independently for all
three. It is easiest if all three are the same, and next best is if X==Y, but
the general case (“Canadian Cross”) does work for gcc. I don’t remember trying
it for Ada (though I’ve been tempted to try to build an Ada for a MIPS target).
And it isn’t quite so clear why it is useful for GHDL -- but the core
machinery should all be there in the GCC infrastructure.
paul
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss