Skip to content

Project Structure

In NECTO Studio, a project is organized in a structured way to facilitate development and management.

Here's an explanation of the typical project structure:

CMakeLists.txt file

  • This is the main configuration file for CMake, used to define the project's build process.
  • It includes instructions on how to compile the source code, link libraries, and generate executables.

CMake Target

  • A CMake target represents a build output, such as an executable or a library.
  • Each target in a project typically contains the following folders:
  • Sources

    • This folder contains the source code files for the project.
    • The main source file, main.c, is located here.
  • Linker Scripts

    • This folder holds the linker script files with a .ld extension.
    • Linker scripts control how the linker combines object files into an executable.

GETTING STARTED TIP:

Read valuable information about linker scripts down below.

  • Linker script files - .ld files - are available for ARM, dsPIC, PIC32 and RISCV families of supported microcontrollers.
  • Toolchains which are directly utilizing those linker files: CLANG and GCC, Microchip XC16, Microchip XC32 and Xpack GCC, respectively.
  • Startup Files
  • This folder contains startup files with a .s extension. Startup files are assembly files responsible for initializing hardware and setting up the runtime environment before the main program executes.