This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Nios2 arch=r1/r2


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]