Classic! Must-Know Stack Concepts in Embedded Programming

Classic! Must-Know Stack Concepts in Embedded Programming

Word Count: 9000 Content Quality: ⭐⭐⭐⭐⭐ 1. Prerequisite Knowledge—Memory Allocation in Programs A program compiled by C/C++ occupies memory divided into the following parts: 1. Stack Area (stack)—automatically allocated and released by the compiler, used for storing function parameters and local variable values. Its operation is similar to a stack in data structures. 2. Heap … Read more

Using GDB to Inspect Program Stack Space

Using GDB to Inspect Program Stack Space

Introduction: This is a quick tutorial on how to use GDB to inspect the stack space of a C program. Word count: 7403, estimated reading time: 10 minutes https://linux.cn/article-13550-1.htmlAuthor: Julia EvansTranslator: amwps290 Yesterday, while chatting with some people, they mentioned that they didn’t really understand how the stack works and didn’t know how to inspect … Read more

Introduction to FreeRTOS: Heap and Stack

Introduction to FreeRTOS: Heap and Stack

Introduction This article officially starts learning about the FreeRTOS operating system. I plan to write a series of articles to help everyone quickly get started with FreeRTOS. 1. Introduction to FreeRTOS FreeRTOS is an open-source, real-time, embedded operating system that is widely used in small embedded systems and microcontrollers. The design goal of FreeRTOS is … Read more