This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Scott Howard wrote: > > m68k-coff has full support for the 68360. > > After you build your compiler, the proper option to use for CPU32 > targets would be '-m68332' for gcc-2.8.1; unfortunately this is not > documented in the gcc manual, so it's easy to miss it! So your compiler > command line would look like > > gcc -m68332 file.c ... binutils-2.9.1 has both -m68360 and -mcpu32, which of course have the same effect. I believe egcs-1.1.1 now includes both of these options as well. If you end up using gcc-2.8.1, you may want a CPU32 version of libgcc.a and newlib. Here's my build procedure for them: % cd binutils-2.9.1 % ./configure --prefix=/home/tools-gnu/`uname -s` \ ? --target=m68k-unknown-coff -v % gmake all info install install-info % cd gcc-2.8.1 % gpatch -p1 < ../crossgcc-gcc-2.8.1.patch % ./configure --prefix=/home/tools-gnu/`uname -s` \ ? --target=m68k-unknown-coff --with-gnu-as --with-gnu-ld -v % sed -e '/^MULTILIB_OPTIONS.*=/s/m68020/&\/m68332/' \ ? -e '/^MULTILIB_MATCHES.*=.*m68000=m68332/s/m68000=m68332//' \ ? -e '/^MULTILIB_EXCEPTIONS.*=/s/$/ *m68332\/*m68881 *m68332\/*msoft-float/' \ ? Makefile > Makefile.cpu32 ; mv Makefile.cpu32 Makefile % gmake LANGUAGES="c" all install --OR-- % cd egcs-1.1.1 (in testing) % ./configure --prefix=/home/tools-gnu/`uname -s` \ ? --target=m68k-unknown-coff --with-gnu-as --with-gnu-ld --with-newlib -v #*** Replace references to LANGUAGES="c c++" with LANGUAGES="c" in Makefile *** % make cross install-cross -- __________________________________________ Matthew Majka - Software Engineer Honeywell, Inc. (Defense Avionics Systems) Albuquerque, New Mexico, USA _______________________________________________ New CrossGCC FAQ: http://www.objsw.com/CrossGCC _______________________________________________ To remove yourself from the crossgcc list, send mail to crossgcc-request@cygnus.com with the text 'unsubscribe' (without the quotes) in the body of the message.