Nios® V Processor Software Developer Handbook

ID 743810
Date 2/14/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

3.1.2.3.1. Applications and Libraries

The Nios® V processor tools have nearly identical support for C/C++ applications and libraries. For each case, the Nios® V processor tools generate a CMakeLists.txt. The CMakeLists.txt is used to build the application or user library.

The CMakeLists.txt builds one of two types of files:
  • For an application: .elf file
  • For a user library: .a library archive file

When you create a CMakeLists.txt for an application or user library, provide the Nios® V processor tools with a list of source files. The BSP directory is mandatory for applications.

For more information, refer to section Nios V Processor Software File Tree.

The Nios® V processor tools examines the case-sensitive extension of each source file to determine the programming language.
Table 12.  Supported Programming Languages with the Corresponding File Extensions
Programming Language File extensions
C .c
C++ .cpp, .cxx, .cc
Nios® V processor assembly language; sources are built directly by the Nios® V processor assembler without preprocessing. .s
Nios® V processor assembly language; sources are preprocessed by the Nios® V C preprocessor, allowing you to leverage macros and other preprocessor features. .S