LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: "Lixin Yao" <Lixin.Yao@HSTX.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: powerpc-linux-gcc vs ppx_8xx-gcc and ppc_6xx-gcc
Date: Fri, 17 Apr 2009 09:31:07 +0200	[thread overview]
Message-ID: <20090417073107.1C18983420E8@gemini.denx.de> (raw)
In-Reply-To: <03D77CA4AC7F4D48A6AB5DA3F1001B3FB5BAC7@exchtxus2.HSTX.global.vpn>

Dear "Lixin Yao",

you should ask ELDK related questions on the ELDK mailing list, see
http://lists.denx.de/mailman/listinfo/eldk

In message <03D77CA4AC7F4D48A6AB5DA3F1001B3FB5BAC7@exchtxus2.HSTX.global.vpn> you wrote:
> 
> I use ELDK 4.2 to work on platforms, one with MPC860 and the other with
> MPC8248.
> 
> In installation, I see links:
> ppc_8xx-gcc -> ppc-linux-gcc
> ppc_6xx-gcc -> ppc-linux-gcc
> ppc-linux-gcc -> powerpc-linux-gcc
>
> I understand ppc_8xx-gcc needs to be used for MPC860 and ppc_6xx-gcc
> needs to be used for MPC8248. But both point to the same
> "powerpc-linux-gcc". 
>
> What are the differences between powerpc-linux-gcc, ppx_8xx-gcc and
> ppc_6xx-gcc? What's the default target processorr of powerpc-linux-gcc?

You must always specify the wanted target architecture in the
CROSS_COMPILE environment variable. If you run ppc_6xx-gcc or
powerpc-linux-gcc (which is possible, but NOT recommended because
it's often difficult to detect misconfigurations like incorrect
CROSS_COMPILE settings) then the target architecture is taken from
the CROSS_COMPILE value.

It is recommended to set CROSS_COMPILE and then run
${CROSS_COMPILE}gcc because this allows easy switching between
different target architectures, i. e. you can write Makefiles that
work both natively and for cross development, and for any of the
supported target architectures without changes to the code.

See for example the Linux or U-Boot Makefiles which work this way.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"Success covers a multitude of blunders."       - George Bernard Shaw

      reply	other threads:[~2009-04-17  7:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-16 20:23 powerpc-linux-gcc vs ppx_8xx-gcc and ppc_6xx-gcc Lixin Yao
2009-04-17  7:31 ` Wolfgang Denk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090417073107.1C18983420E8@gemini.denx.de \
    --to=wd@denx.de \
    --cc=Lixin.Yao@HSTX.com \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox