Altera_Forum
Honored Contributor
19 years agoNIOS little endian or big endian?
Hi,
I have a C application, which was written for an x86 processor (i.e. using little endian) and tried running the given test cases for the application but they failed. I know that the NIOS II architecture uses little endian mode but i read that the object dump listings are in big endian. Could some please clarify if NIOS II is actually using little endian? Because if not then the code i am running can only be run on an x86 like processor and that is why my test cases are failing. I tried compiling and running the test cases through cygwin not using the NIOS and they all passed because it was using a linux x86 architecture. But then i also used sun solaris box to compile and run my code but the same errors popped up that came when i ran the tests in the NIOS II IDE. Any help will be appreciated. If its not little endian how can i configure it to little endian? Thanks, Khurrum