This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
SPE configuration in GCC
- From: Mark Mitchell <mark at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: David Edelsohn <dje at watson dot ibm dot com>, aldyh at redhat dot com
- Date: Mon, 17 Jan 2005 08:53:49 -0800
- Subject: SPE configuration in GCC
- Organization: CodeSourcery, LLC
For most target architecture families, you can generate code for all
processors in the family, independently of how you configured GCC. For
example, even if you build for a little-endian MIPS 4kc processor, you
can still generate code for a big-endian MIPS R10k. You may not have
runtime libraries that work, but you can generate the code.
I was surprised to find that configuring for powerpc-unknown-linux-gnu
got me a compiler that could not generate SPE code becausing things like
TARGET_SPE are hardwired to zero. Is there a reason not to have
TARGET_SPE defined to rs6000_spe in rs6000.h? My expectation would be
that the defaults for these variables would be set differently in
linuxspe.h, but that they would be accessible in all configurations.
Right now, so far as I can tell, the PowerPC back end simply ignores
things like -mfloat-gprs= in its default configuration, which is very
confusing.
Thanks,
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304