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

Advanced Usage of fprintf and fscanf for Appending and Reading Files in C

Advanced Usage of fprintf and fscanf for Appending and Reading Files in C

Advanced Usage of fprintf and fscanf for Appending and Reading Files in C In C programming, file operations are a very important part. Through files, we can persistently store data and also read data from them. In this article, we will focus on how to use <span>fprintf</span> and <span>fscanf</span> functions for appending and reading files. … Read more

Detailed Explanation of File Read and Write Operations in C: fread, fwrite, fprintf

Detailed Explanation of File Read and Write Operations in C: fread, fwrite, fprintf

Detailed Explanation of File Read and Write Operations in C: fread, fwrite, fprintf In C language, file read and write operations are important means for programs to interact with external data. Through files, we can save data to disk and read data from disk. This article will detail the three main file operation functions in … Read more

Thread Local Storage in C Language Concurrency: pthread_key_create

Thread Local Storage in C Language Concurrency: pthread_key_create

Thread Local Storage in C Language Concurrency: pthread_key_create In multithreaded programming, managing data sharing between threads is an important issue. Especially in C language, due to its direct memory manipulation characteristics, using data appropriately can become complex. In this article, we will delve into “Thread Local Storage” and how to implement this feature using the … Read more

Implicit Type Conversion in C: The Pitfalls 99% of Programmers Encounter!

Implicit Type Conversion in C: The Pitfalls 99% of Programmers Encounter!

Hello everyone, I am Xiaokang. Today, let’s talk about a lighter topic: implicit type conversion in C. Have you ever experienced this: the code looks fine, the compilation goes smoothly, but it runs into inexplicable errors? After some debugging, you find out it was a “small data type” issue? Congratulations, you are now part of … Read more

Unveiling Linux Static and Dynamic Libraries: Essential Usage Techniques You Must Master

Unveiling Linux Static and Dynamic Libraries: Essential Usage Techniques You Must Master

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join our technical exchange QQ group with a note of 【Public Account】 for faster approval 1. Concept of Libraries A library (Library) is a collection of pre-compiled code (functions, classes, data, etc.) that can be shared and reused by multiple programs. The core … Read more

Solutions to Endianness Issues in Embedded Programming

Solutions to Endianness Issues in Embedded Programming

The issue of endianness is not new in embedded development. As developers, we have a clear understanding of the endianness problem in embedded development, and here I will provide a simple summary of this issue. Endianness refers to the order of bytes in memory. There is a wealth of information available online regarding endianness, so … Read more

GDB (GNU Debugger) – A Powerful Tool for Database Kernel Developers

GDB (GNU Debugger) - A Powerful Tool for Database Kernel Developers

GDB (GNU Debugger) – A Powerful Tool for Database Kernel Developers Welcome to the world of database kernel development! Today, we will learn about a very important tool that acts like a doctor’s stethoscope or a detective’s magnifying glass, helping us delve into the internal workings of programs and uncover hidden bugs. This tool is … Read more