[Top] [All Lists]

Re: Q: -mcpu= vs. -march= for VR41xx specific instructions

To: Johannes Stezenbach <>
Subject: Re: Q: -mcpu= vs. -march= for VR41xx specific instructions
From: Jim Paris <>
Date: Thu, 14 Mar 2002 12:47:30 -0500
In-reply-to: <>; from on Thu, Mar 14, 2002 at 06:25:02PM +0100
References: <>
User-agent: Mutt/1.2.5i
> I am trying to implement power management for an embedded
> device using a NEC VR4120 CPU core, which has the special
> instructions "standby", "suspend" and "hibernate".

> So I think I need either:
> - make gas accept -march=vr4100 along with -mcpu=r4600 (or -mcpu=r4100?)
> - or have a ".set vr4100" directive to enable the vr41xx specific
>   instructions where needed, without changing the flags in the
>   ELF header
> - or make the linker link modules with different (but compatible) e_flags
> - or is "GCCFLAGS += -Wa,-march=vr4100 -mips2 -Wa,--trap" perfect?

For lots of discussion of this, see


I don't remember where things currently stand.


<Prev in Thread] Current Thread [Next in Thread>