Skip to content

Glossary ​

This glossary collects the core terms that show up across the project's tutorials, grouped by domain, and pairs each English term with its Chinese counterpart. The point is to keep terminology consistent across the whole site, so the same concept never picks up different translations from one article to the next.

C++ Language Features ​

EnglishChineseNotes
RAII (Resource Acquisition Is Initialization)资源获取即初始化The core C++ resource management paradigm
move semantics移动语义Core C++11 feature, avoids unnecessary copies
rvalue reference右值引用T&&, the foundation of move semantics
perfect forwarding完美转发std::forward, preserves value category
copy elision拷贝消除Compiler optimization that omits copy/move operations
return value optimization (RVO)返回值优化Named NRVO, unnamed URVO
zero-overhead abstraction零开销抽象C++ design philosophy, you don't pay for what you don't use
smart pointer智能指针unique_ptr, shared_ptr, weak_ptr
unique pointer独占指针std::unique_ptr, exclusive ownership
shared pointer共享指针std::shared_ptr, reference-counted shared ownership
weak pointer弱引用指针std::weak_ptr, breaks circular references
intrusive pointer侵入式指针Reference count embedded inside the object
constexpr常量表达式Compile-time evaluation, introduced in C++11
consteval立即函数C++20, forces compile-time evaluation
constinit常量初始化C++20, avoids the static initialization order problem
SFINAE (Substitution Failure Is Not An Error)替换失败并非错误Foundational mechanism of template metaprogramming
CRTP (Curiously Recurring Template Pattern)奇异递归模板模式Idiom for static polymorphism
template模板Foundation of generic programming
template specialization模板特化Custom implementations for specific types
template instantiation模板实例化Compiler generates concrete code from a template
generic programming泛型编程Programming paradigm built on templates
type safety类型安全Catches type errors at compile time
type deduction / inference类型推断auto, decltype, template argument deduction
type traits类型特征<type_traits>, compile-time type queries
concepts概念C++20, named constraints on template parameters
constraints约束requires clauses, restrict template parameters
lambda expressionLambda 表达式Anonymous function object, introduced in C++11
structured binding结构化绑定C++17, auto [a, b] = ...
enum class限定作用域枚举C++11, type-safe enumeration
variant变体类型std::variant, a type-safe union
optional可选值std::optional, a value that may be empty
expected预期值C++23, return value carrying error information
any任意类型std::any, a type-erased container
scope guard作用域守卫Runs cleanup actions on destruction
coroutine协程C++20, co_await/co_yield/co_return
module模块C++20, compilation unit replacing header files
range范围C++20, composable algorithms library
view视图Lazy adapters in the ranges library
undefined behavior (UB)未定义行为Behavior the standard leaves unspecified, with unpredictable results
one definition rule (ODR)唯一定义规则Each entity may have exactly one definition per program
stack unwinding栈展开Destroying stack objects layer by layer during exception handling
designated initializer指定初始化器C++20, {.x = 1, .y = 2}
user-defined literal用户自定义字面量operator""_suffix
spaceship operator飞船运算符C++20, <=> three-way comparison
atomic operation原子操作Indivisible, concurrency-safe operation
memory order内存序Ordering constraints on atomic operations
lock-free无锁Concurrent algorithms that avoid mutexes
mutex互斥量Mutual exclusion lock, protects shared data
semaphore信号量Counting synchronization primitive
critical section临界区Code region where only one thread executes at a time
deadlock死锁Multiple threads waiting for each other to release resources
thread线程std::thread, unit of concurrent execution
span视图跨度std::span, non-owning view of a contiguous sequence
EBO (Empty Base Optimization)空基类优化An empty class takes no space as a base class
static polymorphism静态多态Compile-time polymorphism via CRTP or templates

Embedded Hardware ​

EnglishChineseNotes
MCU (Microcontroller Unit)微控制器A single chip integrating CPU, memory, and peripherals
SoC (System on Chip)片上系统Highly integrated single-chip system
register寄存器Hardware-programmable control/data unit
interrupt中断Hardware signal that interrupts the CPU's normal flow
interrupt service routine (ISR)中断服务程序Function executed when an interrupt fires
DMA (Direct Memory Access)直接内存访问Peripheral-memory data transfer without the CPU
GPIO (General-Purpose I/O)通用输入输出Configurable digital pins
ADC (Analog-to-Digital Converter)模数转换器Converts analog signals to digital
DAC (Digital-to-Analog Converter)数模转换器Converts digital signals to analog
PWM (Pulse Width Modulation)脉宽调制Controls output via duty cycle
PLL (Phase-Locked Loop)锁相环Circuit that generates multiplied clock signals
AHB (Advanced High-performance Bus)高级高性能总线ARM's internal high-speed bus
APB (Advanced Peripheral Bus)高级外设总线ARM's internal peripheral bus
clock tree时钟树Clock distribution network from crystal to every module
pull-up resistor上拉电阻Pulls the level high by default
pull-down resistor下拉电阻Pulls the level low by default
push-pull推挽输出Can actively drive high or low
open-drain开漏输出Can only pull low, requires an external pull-up resistor
debounce消抖Filters out bounce from mechanical switches
watchdog看门狗Safety mechanism that resets the CPU on timeout
EXTI (External Interrupt)外部中断Interrupt triggered from an external pin
peripheral外设Independent functional module inside the MCU
PCB (Printed Circuit Board)印制电路板Carrier for electronic components
NVIC (Nested Vectored Interrupt Controller)嵌套向量中断控制器ARM Cortex-M interrupt controller
HAL (Hardware Abstraction Layer)硬件抽象层ST's official peripheral driver library
linker script链接脚本Defines memory layout and section placement
startup code启动代码C runtime initialization, runs before main

RTOS (Real-Time Operating System) ​

EnglishChineseNotes
RTOS (Real-Time Operating System)实时操作系统OS that guarantees response times
scheduler调度器Decides which task gets the CPU
context switch上下文切换Saves/restores task execution state
priority inversion优先级反转A low-priority task blocks a high-priority one
preemptive scheduling抢占式调度High-priority tasks can preempt low-priority ones
cooperative scheduling协作式调度Tasks voluntarily yield the CPU
task / thread任务 / 线程Unit of execution in an RTOS
tick系统节拍Basic time unit of an RTOS
deadline截止时间Point in time by which a task must finish
queue消息队列FIFO for passing data between tasks
priority inheritance优先级继承Protocol that resolves priority inversion
inter-process communication (IPC)进程间通信Mechanism for exchanging data between tasks
binary semaphore二值信号量Semaphore with only two states, 0/1
counting semaphore计数信号量Semaphore whose count can exceed 1
event group事件组Multi-bit flag event synchronization mechanism
idle task空闲任务Runs when no other task is ready
real-time实时Requirement for deterministic response times

Toolchain ​

EnglishChineseNotes
cross-compile交叉编译Build code for one platform on another
toolchain工具链Compiler + assembler + linker bundle
CMakeCMakeCross-platform build system generator
MakefileMakefileConfiguration file for the make build tool
flash烧录Writes the program into the target chip
debug probe调试探针Hardware debugger linking host and target board
JTAGJTAGJoint Test Action Group debug interface
SWD (Serial Wire Debug)串行线调试ARM's two-wire debug interface
OpenOCDOpenOCDOpen-source on-chip debugger
ELF (Executable and Linkable Format)ELF 格式Executable and Linkable Format, compiler output
hexIntel HEX 格式Text format used for flashing
objcopy对象复制Format conversion tool (ELF→HEX/BIN)
compiler flag编译器选项Command-line parameter that controls compilation
optimization level优化等级-O0/-O1/-O2/-Os/-O3
preprocessor预处理器Handles #include, #define, and friends
linker链接器Merges object files into an executable
assembler汇编器Turns assembly code into object files
build system构建系统Tool that automates the build process
dependency依赖One module needing another
static library静态库.a/.lib files linked at compile time
shared library动态库.so/.dll files loaded at runtime

Debugging ​

EnglishChineseNotes
breakpoint断点Marker that pauses program execution
watchpoint观察点Marker that watches memory/variable changes
trace跟踪Records program execution flow
semihosting半主机Target board uses host I/O through the debugger
ITM (Instrumentation Trace Macrocell)指令跟踪宏单元ARM Cortex-M debug output
ETM (Embedded Trace Macrocell)嵌入式跟踪宏单元Instruction-level execution tracing
logic analyzer逻辑分析仪Tool that captures multi-channel digital signals
oscilloscope示波器Instrument for viewing electrical signal waveforms
GDB (GNU Debugger)GDB 调试器GNU's open-source debugger
core dump核心转储Memory snapshot taken when a program crashes
backtrace调用栈回溯Traceback of the function call chain
single-step单步执行Executes one instruction/statement at a time
memory leak内存泄漏Allocated memory that is never freed
stack overflow栈溢出Stack space exhausted

pdf-latest-4-g85128cc · 85128cc · 2026-10-05