This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to build targets with octeon platform?


åå <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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]