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

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to