[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How do you compile C with gcc for 68332?

None of the relevant compiler switches seem to work.

[woodsj@wyerie TrinityC1000]$ gcc -c -mcpu=68332 trinity.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
trinity.c:1: error: bad value (68332) for -mtune= switch
[woodsj@wyerie TrinityC1000]$ gcc -c -march=68332 trinity.c
trinity.c:1: error: bad value (68332) for -march= switch
trinity.c:1: error: bad value (68332) for -mtune= switch

It is a 68332 cpu that is being used. What is the correct value - or where am 
I going wrong?

I can compile the code with:

cd public_html/business/biblio/woods\ jay/ps/equip/work/TrinityC1000
gcc -c trinity.c

with the result:

[woodsj@wyerie TrinityC1000]$ gcc -c trinity.c
[woodsj@wyerie TrinityC1000]$ ls -al | grep trinity.o
-rw-rw-r--  1 woodsj woodsj  267204 2008-07-27 03:49 trinity.o
[woodsj@wyerie TrinityC1000]$ date
Sun Jul 27 03:52:49 CDT 2008

The inclusion of -Wall gives the usual long list of warnings which I will 
spare you.

The background info is:

[woodsj@wyerie TrinityC1000]$ gcc -v
Using built-in specs.
Target: i386-redhat-linux
with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj- --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)

Reply to: