This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Nios2 arch=r1/r2
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: BELBACHIR Selim <selim dot belbachir at fr dot thalesgroup dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Wed, 9 Mar 2016 12:57:52 -0700
- Subject: Re: Nios2 arch=r1/r2
- Authentication-results: sourceware.org; auth=none
- References: <9C88BF562A27AA41B242B2780441926E3050B01A31 at THSONEA01CMS05P dot one dot grp>
On 03/09/2016 03:03 AM, BELBACHIR Selim wrote:
Hi,
I'm looking at gcc-nios2 options -march.
It seems two instruction sets can be selected (r1/r2) but I cannot find out where theses instructions set are described.
On the other end I found this document https://www.altera.com/content/dam/altera-www/global/en_US/pdfs/literature/hb/nios2/n2cpu_nii51017.pdf which describes several updates of the instruction set (section Document Revision History) from 2004 to 2015.
I'm looking for a recent gcc-nios2 compiler compatible pour nios2 version 6.1 (November 2006) i.e. without the 'jmpi' instruction.
Do I have to modify the backend to add a -mno-jmpi option ?
GCC does not support such old versions of the Nios II instruction set as
you want. I suppose adding a -mno-jmpi option would be the best way to
handle it.
-march= is something else entirely, to support new revisions of the
architecture rather than old ones.
-Sandra