gcc 3.3.3 and -mcpu=r2000: bad value for -mcpu= switch

2004-03-19 Thread Augusto Jun Devegili
Hi all,

I'd like to generate MIPS code from gcc. I've tried

$ gcc test01.c -o test01 -mcpu=r2000

and this is the error message I got

cc1: error: bad value (r2000) for -mcpu= switch

I'm using gcc (GCC) 3.3.3 [FreeBSD] 20031106 in a FreeBSD 5.2-CURRENT
i386 box.

Any ideas?

TIA and regards,

Augusto

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gcc 3.3.3 and -mcpu=r2000: bad value for -mcpu= switch

2004-03-19 Thread Kris Kennaway
On Fri, Mar 19, 2004 at 08:55:21AM -0300, Augusto Jun Devegili wrote:
 Hi all,
 
 I'd like to generate MIPS code from gcc. I've tried
 
 $ gcc test01.c -o test01 -mcpu=r2000
 
 and this is the error message I got
 
 cc1: error: bad value (r2000) for -mcpu= switch
 
 I'm using gcc (GCC) 3.3.3 [FreeBSD] 20031106 in a FreeBSD 5.2-CURRENT
 i386 box.
 
 Any ideas?

gcc doesn't support all possible architectures at once, you have to
compile a gcc version targetted at that architecture.  There is
probably a port for this, e.g. devel/mips-rtems-gcc.

kris


pgp0.pgp
Description: PGP signature