How to Compile C Programs in Linux

How to Compile C Programs in Linux

Article Word Count: 1400 Practical Index: ⭐⭐⭐⭐⭐ Common IDEs for compiling on Windows, while using gcc directly for compilation in Linux, is the foundation of Linux embedded programming and also a frequently asked question in embedded interviews. Command Line Compilation and Detailed Compilation Process Example code for hello.c: #include <stdio.h> int main(void) { printf("Hello world\n"); … Read more

CLion Tutorial – Embedded Development

CLion Tutorial - Embedded Development

This page provides an overview of how to use CLion as your embedded development IDE. For detailed feature descriptions and setup instructions, please refer to the dedicated articles in this section. Hardware TypeCLion supports embedded development for any hardware compatible with the GCC or IAR toolchain. Some examples include: ARM-based microcontrollers, such as the STM32 … Read more

Make/Makefile: Automation Build Tool for Linux Projects

Make/Makefile: Automation Build Tool for Linux Projects

Follow Me by Clicking the Blue Text In Linux systems, make and Makefile are essential tools for automating the compilation and building of software projects. They simplify the software development process by automating the execution of a series of predefined commands to compile source code, run tests, install programs, and more. What is make? make … Read more

Introduction to Make and Makefile in Compilation and Linking

Introduction to Make and Makefile in Compilation and Linking

Introduction Many engineers without formal training are actually quite unfamiliar with the compilation and linking of projects (including the author himself). However, if we want to create our own projects or implement a project from 0 to 1, or if we want to optimize programs, modify the memory layout, or implement memory protection under the … Read more

In-Depth Analysis of CMake Build Process: From Fundamentals to Complex Projects

In-Depth Analysis of CMake Build Process: From Fundamentals to Complex Projects

1. Analysis of the Project Structure After CMake Build 1.1 Directory Structure After CMake Build After CMake build is complete, a directory named build will be generated in the root directory of the project. This directory is where all intermediate files and final target files generated during the CMake build process are stored. Below, we … Read more

Introduction to Makefile Structure in Compilation and Linking

Introduction to Makefile Structure in Compilation and Linking

Introduction Many engineers without formal education in computer science are actually not familiar with the compilation and linking of projects (including the author). However, if we want to create our own projects or implement a project from 0 to 1, or if we want to optimize programs, modify the memory layout, or implement memory protection … Read more

Using Makefile for Project Management to Boost Efficiency

Using Makefile for Project Management to Boost Efficiency

Click the blue text above to follow us 1. Introduction to Makefile Makefile is a file specially designed to assist in project build management. It defines a set of commands that the compiler and IDE project management systems can automatically execute, primarily used for automating compilation and reducing the burden of repetitive tasks. The Makefile … Read more

Detailed Explanation of CMakeLists.txt

Detailed Explanation of CMakeLists.txt

In the previous article, “Introduction to CMake Build Tool for ESP32,” we introduced the most basic usage of CMake with a “Hello World” program. Today, we will provide a detailed explanation of the CMakeLists.txt file. CMakeLists.txt The CMakeLists.txt file is the core configuration file for the CMake build tool. It contains a series of instructions … Read more

Getting Started with CMake for Large Projects

Getting Started with CMake for Large Projects

Most open-source storage systems are built on the Linux operating system. This article introduces storage technology while also covering some Linux content, focusing on practicality. It will be helpful for both application development and kernel understanding. When our project consists of thousands of files, manually writing a Makefile will be a nightmare. Fortunately, CMake helps … Read more