This is the mail archive of the
mailing list for the GCC project.
Re: [Code Generation] Multi-target
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: Michael Eager <eager at eagerm dot com>
- Cc: Claudia Henriques <cfrhenriques at gmail dot com>, "gcc\ at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 08 Apr 2014 07:50:55 +0100
- Subject: Re: [Code Generation] Multi-target
- Authentication-results: sourceware.org; auth=none
- References: <534148A7 dot 5030206 at gmail dot com> <5341807E dot 7050203 at eagerm dot com>
Michael Eager <email@example.com> writes:
> On 04/06/14 05:29, Claudia Henriques wrote:
>> Hi everybody!
>> My name is Claudia and I am currently working on my master's thesis.
>> I am working with an embedded system, so part of my code will target
>> microblaze, while the remaining
>> code will target x86_64. I would like to know if anybody is able to
>> provide me some work and/or
>> documentation (i.e., anything) about code generation for multiple
>> targets in gcc.
> There is extensive documentation about code generation
> in the GCC manual. See http://gcc.gnu.org/onlinedocs/
> or http://gcc.gnu.org/onlinedocs/gccint/. Also the GCC
> Wiki: http://gcc.gnu.org/wiki/HomePage.
> Of course, you can always read the source code.
> Let me know if you have specific questions about MicroBlaze.
I think the question was more about whether it was possible to build a
single GCC that supports two targets. If so, the answer's that it isn't
possible at the moment. Things are slowly moving in that direction,
but it's not clear whether it'll ever happen. For targets as different
as x86_64(-linux-gnu?) and microblaze it's probably always going to be
better to build two separate GCCs anyway.