Basics of Makefile in C Compilation

Basics of Makefile in C Compilation

When compiling a large project, there are often many target files, library files, header files, and the final executable file. There are dependencies between different files. For example, when we compile using the following commands: $gcc -c -o test.o test.c $gcc -o helloworld test.o The executable file helloworld depends on test.o for compilation, while test.o … Read more

Jieli Visualization SDK – Compiling with Makefile and Firmware Output

Jieli Visualization SDK - Compiling with Makefile and Firmware Output

Follow+Star Public Account Number, don’t miss out on exciting content Many friends have asked in the background whether it is possible to develop applications based on JieliSDK without installing the Jieli visualization tool. The Jieli VisualizationSDK supports compilation using makefile in both Windows and Linux environments. By default, the SDK supports compilation and downloading in … Read more

CMake Basics: Compiling Multiple Source Files Together

CMake Basics: Compiling Multiple Source Files Together

1. Multiple source files add.c and subtract.c are in one folder, the file structure is as follows:head.h #ifndef _HEAD_H #define _HEAD_H // Add int add(int a, int b); // Subtract int subtract(int a, int b); #endif add.c #include <stdio.h> #include "head.h" // Add int add(int a, int b) { return a + b; } subtract.c … Read more

Linux | GCC Compilation Guide

Linux | GCC Compilation Guide

01 Why learn embedded Linux and embedded microcontrollers? Because AI will not be able to replace them in the next decade. GCC, which stands for GNU Compiler Collection, is a compilation suite that supports various computer architectures such as X86, ARM, and MIPI. The GCC that we use is included by default in Ubuntu.GCC options … Read more