Article ID: 000086286 Content Type: Troubleshooting Last Reviewed: 06/29/2017

Why do I see wrong variable size when compiling NIOS II C application utilizing custom makefile ?

Environment

  • Quartus® II Subscription Edition
  • Nios® II Embedded Design Suite (EDS)
  • Nios® II Processor
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT
    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.

     

    Related Products

    This article applies to 1 products

    Intel® Programmable Devices