Summary of Embedded C Language Knowledge Points

Summary of Embedded C Language Knowledge Points

Introduction How can one excel in embedded development? Master the C language! Today, I would like to recommend a summary of embedded C language knowledge points written by an expert.Keywords in C Language The keywords in C language can be categorized by their functions: Data types (commonly used: char, short, int, long, unsigned, float, double) … Read more

A Deep Dive into C Language: From Basic Types to Memory Layout

A Deep Dive into C Language: From Basic Types to Memory Layout

The Data World of C Language: A Deep Dive from Basic Types to Memory Layout I am Feri. In embedded development, the choice of data types directly affects memory usage and runtime efficiency. The power of C language comes from its precise control over data—this article will guide you through the surface of data to … Read more

10 Essential C Language Tips for Hardware Engineers

10 Essential C Language Tips for Hardware Engineers

The most common task for hardware designers is to test hardware by writing code. These 10 C language tips (C remains a popular choice) can help designers avoid defects caused by fundamental errors, which can lead to maintenance issues. To successfully launch a product, the software development process itself must navigate countless practical risks and … Read more

C Language – 02 Hello World!

C Language - 02 Hello World!

In the previous article on computer programming languages, we introduced the definition and development stages of programming languages. Now, we will specifically write executable code for a computer programming language and create our first program, Hello World. The process of inputting, modifying, and saving source code using a text editor (such as Dev++, VS Code, … Read more

Mastering C Language: The Importance of Well-Defined Macros

Mastering C Language: The Importance of Well-Defined Macros

Using macros can prevent errors, enhance portability, readability, and convenience. Below are some commonly used macros in mature software. Redefining some types to prevent differences in type byte sizes due to various platforms and compilers, facilitating portability: typedef unsigned char boolean; /* Boolean value type. */typedef unsigned long int uint32; /* Unsigned 32 bit value … Read more

Introduction to Programming Fundamentals (C Language)

Introduction to Programming Fundamentals (C Language)

01 Basic Information 02 Course Introduction “Introduction to Programming Fundamentals (C Language)” is an important foundational course for the Geographic Information Science major. This course focuses on the basic syntax of C language, principles of program compilation, and debugging methods, guiding students to become familiar with commonly used development tools. The specific course content is … Read more

From C Language to Assembly Language

From C Language to Assembly Language

First, let me introduce the software development process in my work. Our company produces a physical product, and the software part of the product is developed and maintained by multiple departments. The code from our team is compiled into static libraries (.a) or dynamic libraries (.so) depending on the product form, and together with libraries … Read more

Understanding Double Pointers: The ‘Deep Control’ in C Language

Understanding Double Pointers: The 'Deep Control' in C Language

Today, let’s talk about a relatively advanced concept in C language—double pointers. Double pointers are like the “key to deep control” in the programming world, helping us implement more complex logic in memory operations. As a seasoned engineer graduated from Peking University, I will guide you through the charm of double pointers in an easy-to-understand … Read more

Learning Data Structures from Scratch (C Language Version)

Learning Data Structures from Scratch (C Language Version)

(This article is a transfer from Zhihu to this public account) Introduction: I started learning data structures in the second semester of my sophomore year. However, with a full schedule and various commitments, I found it hard to focus in class and couldn’t understand much (especially after almost forgetting C language during the summer vacation … Read more

Usage of Struct in C Language

Usage of Struct in C Language

Defining Struct Variables The following example illustrates how to define a struct variable. struct string { char name[8]; int age; char sex[2]; char depart[20]; float wage1, wage2, wage3, wage4, wage5; }person; This example defines a struct variable named person of type string. The variable name person can also be omitted, defined as follows: struct string … Read more