This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: how to build targets with octeon platform?
- From: Ian Lance Taylor <iant at google dot com>
- To: åå <lzhskywalker at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 02 Feb 2010 07:53:01 -0800
- Subject: Re: how to build targets with octeon platform?
- References: <7946deee1002011925o773df163t4ec898b2def25e77@mail.gmail.com>
åå <lzhskywalker@gmail.com> writes:
> ÂÂ ÂI'm a software engineer working with MIPS CPU -- octeon. I used to
> build my projects on my x86 system using a cross-compiled gcc which
> was built specifically for octeon platform. Recently, I have figured
> out that gcc 4.4.3 starts to support octeon platform by using a normal
> x86 gcc with an option "-march=octeon". But it seems not working as I
> tried several time.
I don't understand this. Octeon is a MIPS processor. You can use a
normal x86 gcc to generate MIPS code.
>  gcc a.c -march=octeon
>
> Â a.c: 1: error: bad value (octeon) for âmarch= switch
>
> Â a.c: 1: error: bad value (octeon) for âmtune= switch
>
>
>
> ÂIt seems the option '-march' and '-mtune' won't work with all MIPS
> series platform. ÂBut when I tried replace 'octeon' with 'athlon64' or
> something else, gcc did it just fine.
Right: an x86 gcc will let you generate athlon64 code. It won't let
you generate octeon code. For octeon code you need a MIPS
cross-compiler.
Ian