Understanding C++ Compilers: A Comprehensive Guide

Understanding C++ Compilers: A Comprehensive Guide

In C++ development, C++ Compiler is the core tool that converts your written C++ source code (.cpp files) into machine code (or intermediate code) executable by computers. Without a compiler, your C++ programs cannot run. Therefore, choosing a suitable C++ compiler is the first step in starting C++ programming. 🎯 1. What is a C++ … Read more

Embedded Reading Notes: The Definitive Guide to Cortex-M3 (Part II)

Embedded Reading Notes: The Definitive Guide to Cortex-M3 (Part II)

Reading Notes: The Definitive Guide to Cortex-M3 Note: The content of this article is excerpted from the “Definitive Guide to Cortex-M3”. The Cortex-M series is essential in embedded development, and this series will record the key points of knowledge focused on while reading the book. It is recommended to read the original book. Chapter 7: … Read more

Cortex Authority Manual – OS Support Features

Cortex Authority Manual - OS Support Features

Shadow Stack Pointer The shadow stack pointer mechanism is crucial for the implementation of operating systems in ARM Cortex-M series processors. The Main Stack Pointer (MSP) and Process Stack Pointer (PSP) are used in different scenarios: Main Stack Pointer (MSP): The default stack pointer used for the operating system kernel and interrupt handling. In handler … Read more

Compilation Tools: GCC, GNU, MinGW, MSVC, Make, CMake, Ninja

Compilation Tools: GCC, GNU, MinGW, MSVC, Make, CMake, Ninja

1. Starting with Hello World: How Does a Program Become an Executable File? Let’s start with the simplest C program: On Linux, to run this code, we need to use GCC to turn it into a program that the machine can execute. This process consists of 4 steps: Preprocessing (<span>hello.c</span> → <span>hello.i</span>): Handling preprocessing directives … Read more

The Secrets of GCC/MSVC Search Paths

The Secrets of GCC/MSVC Search Paths

If this article helps you, feel free to follow Programmer Xiao Mi . Wishing you progress in your programming journey! Different paths may contain the same header files, and the search rules for header files also have their own regulations. Library files similarly have search path issues. GCC Header Files When compiling C code with … Read more