Knowledge Base Article
Why do I see wrong variable size when compiling NIOS II C application utilizing custom makefile ?
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.
Updated 3 months ago
Version 2.0No CommentsBe the first to comment