Description
When compiling NIOS II C code through a custom makefile, the “Long” variable size is 8 Byte. However, when compiling NIOS II application in NIOS II eclipse, the size is 4 Byte.
Resolution
The possibility of making wrong compilation through the custom makefile is coming from utilizing PC GCC ("x86_64-pc-cygwin"). However, the correct one should be "nios2-elf-gcc".
To avoid this issue, use the NIOS II SBT to build NIOS II applications.