How Embedded Experts Optimize Microcontroller Programs from a Global Perspective

How Embedded Experts Optimize Microcontroller Programs from a Global Perspective

I am Lao Wen, an embedded engineer who loves learning.Follow me to become even better together!Program Structure Optimization 1. Program Writing Structure Although the writing format does not affect the quality of the generated code, certain writing rules should still be followed during actual programming. A clearly written program is beneficial for future maintenance. When … Read more

C Language and AT&T Assembly Format Rewrite Example from Modern x86 Assembly Language Programming (Part 16)

C Language and AT&T Assembly Format Rewrite Example from Modern x86 Assembly Language Programming (Part 16)

1. Write the C language program ch03_06_01.c /* * The goal of this program is to count the occurrences of a specific character in a given string and print the result. * The length of a char is 1 byte, while the length of a char* is 8 bytes (refer to "Computer Systems: A Programmer's … Read more

Introduction to x86 Assembly Language and Environment Configuration

Introduction to x86 Assembly Language and Environment Configuration

1.Introduction to x86 x86 is a CISC architecture introduced by Intel in 1978, named after early processor models (such as 8086). Its core features include complex instruction set design and backward compatibility, supporting a smooth transition from 16-bit to 64-bit. Throughout its historical evolution, the 80386 marked the beginning of the 32-bit era, while AMD64 … Read more

Idioms Related to ‘Arm’ and Their Explanations

Idioms Related to 'Arm' and Their Explanations

The Basic Meaning of ‘Arm’ As a noun, the most common meaning of ‘arm’ is “arm; limb”; it can also refer to “weapons; armed forces”; as a verb, it means “to arm; to equip”. Examples of Noun Usage Arm; Limb She held the baby in her arms. (She held the baby in her arms.) Weapons; … 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

The Significance of dword ptr in Assembly Language

The Significance of dword ptr in Assembly Language

In assembly language (especially in the x86 architecture), <span>dword ptr </span>is a term used to specify the size of data and the addressing mode for memory operations. 1 dword It stands for “double word,” which refers to 32 bits (4 bytes) of data. In the x86 architecture: 1 word = 16 bits (2 bytes) 1 … Read more

44 Examples of Proteus Assembly Language Simulation: A Comprehensive Collection Based on 51 Microcontroller Assembly Language Design

44 Examples of Proteus Assembly Language Simulation: A Comprehensive Collection Based on 51 Microcontroller Assembly Language Design

Previous Review Note: The A series includes assembly materials including simulation and source code The T series only includes simulation and programs (C language) The H series includes both programs (C language) and simulations, as well as design reports and video explanations! 1. Previous collections can be viewed by searching “directory” 2. For simulation software, … Read more

My Uncle Suggested I Stay Away from Python and Start with Assembly Language…

My Uncle Suggested I Stay Away from Python and Start with Assembly Language...

As a programmer, what was the first programming language you encountered and learned? According to the “2021-2022 China Developer Survey Report”, the historically significant assembly language is the most disliked programming language among programmers (37%), followed by C++ (17%) and C (16%). As a machine-oriented programming language, assembly language is indeed very precise, but it … Read more

Microcontroller Program Optimization Process!

Microcontroller Program Optimization Process!

01 Program Structure Optimization 1. Program Writing Structure Although the writing format does not affect the quality of the generated code, certain writing rules should still be followed during actual programming. A clearly written program is beneficial for future maintenance. When writing programs, especially for statements like While, for, do…while, if…else, switch…case, and their nested … Read more