Data Structures
In-Depth Exploration of Pointers in C Language
Hello everyone! Today we are going to talk about one of the most powerful yet confusing features of the C language for beginners – pointers. Through several practical examples, let’s master this core concept step by step. A pointer is essentially a variable that stores a memory address. Imagine it like the house number, telling … Read more
Implementing a HashMap in C Language
In the world of data structures, a HashMap is an efficient tool for storing and retrieving data. It stores data in the form of key-value pairs, allowing for insertions, deletions, and lookups to be performed in average constant time complexity. Today, we will implement a simple HashMap using the C programming language. 1. Introduction to … Read more
Detailed Use of Arrays in C Language
Today, let’s talk about the C language. When I first started learning, I was quite confused; it seemed simple, but I always encountered various problems when using it. After many years of trial and error, I would like to share some of my insights with you. Here is a detailed explanation of the use of … Read more
What You Need to Learn for Embedded Development
Today I will share some knowledge that you need to learn for embedded development, to help you with self-study. What you need to learn for embedded development mainly includes the following aspects: 1. Circuit Knowledge (Because hardware design involves component selection, schematic and PCB design, and circuit debugging, you need to master knowledge related to … Read more
Essential C Language Tools for Embedded Development
原文:https://zhuanlan.zhihu.com/p/653484840 In embedded development, commonly used C language tool code is indeed very important. Today, I will share some sharp-level C language tool code examples, along with brief explanations. 1. Circular Buffer: typedef struct { int buffer[SIZE]; int head; int tail; int count; } CircularBuffer; void push(CircularBuffer *cb, int data) { if (cb->count < SIZE) … Read more
Common C Language Tools for Embedded Development
The C language tools commonly used in embedded development are indeed very important. Below are some sword-level C language tool code examples, along with brief explanations. 1. Circular Buffer: typedef struct { int buffer[SIZE]; int head; int tail; int count; } CircularBuffer; void push(CircularBuffer *cb, int data) { if (cb->count < SIZE) { cb->buffer[cb->head] = … Read more
Understanding Byte Alignment in Linux
Recently, I encountered a problem where threadx running on ARM crashed when communicating with DSP using message queues (the underlying implementation is through interrupts and shared memory). During the troubleshooting process, it was found that the structure used for message passing did not consider the issue of byte alignment. Here, I will整理一下 the issue of … Read more
Embedded Systems Beginner’s Progression: Key Milestones
01 Basic Stage 1.1 Basics of Programming Languages C Language: As the cornerstone of embedded development, it is essential to master its various features. By carefully studying classic books such as “The C Programming Language,” deeply understand the syntax rules, accurately grasp the use of data types, skillfully manipulate pointers as a powerful tool, and … Read more
Data Structures Commonly Used in Embedded Application Development
来源 | 吃时间的虫子TK Software engineers typically need to determine which data structures and algorithms to use based on specific application business logic. It can be said that suitable data structures and algorithms are the cornerstone of stable business software operation. If you are a software engineer, whether you are preparing for coding interviews, optimizing your … Read more