Efficient Programming and Code Optimization in C Language

Efficient Programming and Code Optimization in C Language

(Click the blue text above to quickly follow us) English: codeproject, Translation: Programmer Network gunner www.codeceo.com/article/c-high-performance-coding.html If you have good articles to submit, please click → here for details In this article, I have gathered a lot of experiences and methods. Applying these experiences and methods can help us optimize C language code in terms … Read more

Remembering Dennis Ritchie: Six Years Since His Passing

Remembering Dennis Ritchie: Six Years Since His Passing

(Click the public account above to follow quickly) 【Introduction】: Unknowingly, it has been six years since Dennis Ritchie left us. On October 12, 2011, Rob Pike, a colleague who worked with Ritchie for over 20 years, visited him in New Jersey from California, only to find that he had passed away. Due to living alone, … Read more

Understanding the Relationship Between .h and .c Files in Embedded C Programming

Understanding the Relationship Between .h and .c Files in Embedded C Programming

Relationship Between .h Files and .c Files When referring to the programs of experts, I found that the strict programs written by others all include a “KEY.H” file, which defines the functions used in the .C file, such as Keyhit() and Keyscan()..H files are header files, probably meaning ‘Head’, which is necessary for structured design … Read more

In-Depth Discussion on Embedded C Programming: Have You Libraryed?

In-Depth Discussion on Embedded C Programming: Have You Libraryed?

Libraries are powerful tools! If a device program is perfectly libraryed, it means: 1. All engineers spend minimal effort when porting or creating the device driver. 2. As the number of users increases, it becomes more stable through extensive testing, evolving into a well-deserved public code. 3. The external interface of the library (function names … Read more

Advanced Embedded Programming: C Programming (Part 2)

Advanced Embedded Programming: C Programming (Part 2)

1. Daily Chat(It is said that articles go well with music) At the beginning of the article, I have selected an older song by JJ called “Jiangnan” for everyone to reminisce. The first article in this series briefly discussed the process of converting C language to machine code, and provided an overview of why C … Read more

Embedded C Programming: Are Pointers Difficult?

Embedded C Programming: Are Pointers Difficult?

I am Lao Wen, an embedded engineer who loves learning.Follow me to become even better together!Pointers are everywhere Many beginners in C language find pointers quite difficult. In fact, pointers are present in many aspects of our lives, and we use them all the time. They make our lives more convenient. Without pointers, life would … Read more

Embedded Programming Standards from an Expert’s Perspective

Embedded Programming Standards from an Expert's Perspective

Today, I found a coding standard to share with everyone, which can help avoid many bugs. “ Introduction: This article analyzes the embedded C coding standards shared by a foreign expert on GitHub (recommended for careful reading): A Mixed Bag of Embedded Systems.Keywords: Embedded, C Statements, Coding Standards ” Sharing the embedded C coding standards … Read more

Challenge: Write a Blinking LED Program in Just 100 Bytes!

Challenge: Write a Blinking LED Program in Just 100 Bytes!

This article is lengthy, with a total reading time of 10 minutes. # Author: Roff Segger, Technical Testing, Translation, and Writing at SEGGER We are testing using SEGGER’s Embedded Studio development environment: on a Cortex-M microcontroller, how much Flash memory is needed to complete a blinking LED application? Objective: · Complete a blinking application using … Read more

Operating System in C: Device Drivers

Operating System in C: Device Drivers

Operating System in C: Device Drivers Introduction Device drivers are a crucial component of an operating system, acting as a bridge between hardware and software. Through device drivers, the operating system can control and manage hardware devices such as printers, graphics cards, and network adapters. In this article, we will delve into how to write … Read more

Understanding the Make Tool and Makefile in C Programming

Understanding the Make Tool and Makefile in C Programming

Compiled languages require compilation before execution. This is seen as an advantage by some, as it allows for syntax checks and other information verification during the compilation process, helping to avoid basic errors. Additionally, the compiled code can run faster. However, others view this as a disaster. Often, this is not due to any other … Read more