Forum Discussion
Altera_Forum
Honored Contributor
12 years agoPosition Indepedent Code for Nios
Hello, I was using Quartus 13.0sp1 and had no problem compiling a library project with the compiler option -fpic. I just switched to Quartus 13.1 and now I receive the error: error: positio...
Altera_Forum
Honored Contributor
12 years agoI got some answers in case anybody else has this problem.
1. -EL is for little endian. While the Nios architecture specification allows for big or little endian, only little has been implemented so far, so this option has been removed. 2. -fPIC and -fpic are not supported for bare-metal applications. Period. Older versions of the compiler allowed it but results are buggy and it shouldn't be used. This is why it is disabled in the new version of the compiler. 3. -mno-gpopt has been omitted from the current compiler version by accident. It should reappear in a future release.