Skip to content

Glossary

This document collects core terms appearing in the project tutorials, grouped by domain, providing Chinese-English comparison. The goal is to ensure consistent terminology translation throughout the text, preventing different translations for the same concept across different articles.

C++ Language Features

EnglishChineseNotes
RAII (Resource Acquisition Is Initialization)资源获取即初始化Core C++ resource management idiom
move semantics移动语义Core C++11 feature, avoids unnecessary copies
rvalue reference右值引用T&&, foundation of move semantics
perfect forwarding完美转发std::forward, preserves value category
copy elision拷贝消除Compiler optimization, 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智能指针std::unique_ptr, std::shared_ptr, std::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 static initialization order issues
SFINAE (Substitution Failure Is Not An Error)替换失败并非错误Core mechanism of template metaprogramming
CRTP (Curiously Recurring Template Pattern)奇异递归模板模式Static polymorphism idiom
template模板Foundation of generic programming
template specialization模板特化Providing custom implementations for specific types
template instantiation模板实例化Compiler generating concrete code from templates
generic programming泛型编程Programming paradigm based on templates
type safety类型安全Catching 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 clause, restricts template parameters
lambda expressionLambda 表达式Anonymous function objects, introduced in C++11
structured binding结构化绑定C++17, auto [x, y] = ...
enum class限定作用域枚举C++11, type-safe enumerations
variant变体类型std::variant, type-safe union
optional可选值std::optional, values that can be empty
expected预期值C++23, return values carrying error information
any任意类型std::any, type-erased container
scope guard作用域守卫Executes cleanup actions upon destruction
coroutine协程C++20, co_await/co_yield/co_return
module模块C++20, compilation unit replacing headers
range范围C++20, composable algorithm library
view视图Lazy evaluation adapters in ranges library
undefined behavior (UB)未定义行为Behavior not defined by the standard, unpredictable results
one definition rule (ODR)唯一定义规则Each entity must have exactly one definition in the program
stack unwinding栈展开Destroying stack objects layer by layer during exception handling
designated initializer指定初始化器C++20, Type x{.field = value}
user-defined literal用户自定义字面量operator ""
spaceship operator飞船运算符C++20, <=> three-way comparison
atomic operation原子操作Indivisible concurrent-safe operations
memory order内存序Ordering constraints on atomic operations
lock-free无锁Concurrent algorithms without mutexes
mutex互斥量Mutual exclusion lock, protects shared data
semaphore信号量Counting synchronization primitive
critical section临界区Code segment allowing only one thread at a time
dead lock死锁Threads waiting for each other to release resources
thread线程std::thread, unit of concurrent execution
span视图跨度std::span, non-owning view of contiguous sequences
EBO (Empty Base Optimization)空基类优化Empty classes take no space as base classes
static polymorphism静态多态Compile-time polymorphism, based on CRTP or templates

Embedded Hardware

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

RTOS (Real-Time Operating System)

EnglishChineseNotes
RTOS (Real-Time Operating System)实时操作系统OS guaranteeing response times
scheduler调度器Decides which task gets the CPU
context switch上下文切换Saving/restoring task execution state
priority inversion优先级反转Low-priority task blocking high-priority task
preemptive scheduling抢占式调度High-priority tasks can preempt low-priority ones
cooperative scheduling协作式调度Tasks voluntarily yield the CPU
task / thread任务 / 线程Unit of execution in RTOS
tick系统节拍Basic time unit of RTOS
deadline截止时间Time point by which a task must complete
queue消息队列FIFO for passing data between tasks
priority inheritance优先级继承Protocol to solve priority inversion
inter-process communication (IPC)进程间通信Data exchange mechanism between tasks
binary semaphore二值信号量Semaphore with only 0/1 states
counting semaphore计数信号量Semaphore that can be greater than 1
event group事件组Multi-bit event synchronization mechanism
idle task空闲任务Runs when no other tasks are ready
real-time实时Deterministic response time requirements

Toolchain

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

Debugging

EnglishChineseNotes
breakpoint断点Marker to pause program execution
watchpoint观察点Marker monitoring memory/variable changes
trace跟踪Recording program execution flow
semihosting半主机Target board using host I/O via debugger
ITM (Instrumentation Trace Macrocell)指令跟踪宏单元ARM Cortex-M debug output
ETM (Embedded Trace Macrocell)嵌入式跟踪宏单元Instruction-level execution tracing
logic analyzer逻辑分析仪Tool capturing multi-channel digital signals
oscilloscope示波器Instrument for observing electrical signal waveforms
GDB (GNU Debugger)GDB 调试器GNU open-source debugger
core dump核心转储Memory snapshot when program crashes
backtrace调用栈回溯History of function call chain
single-step单步执行Executing instruction by instruction / statement by statement
memory leak内存泄漏Allocated memory not being freed
stack overflow栈溢出Stack space exhausted

v0.7.0-9-g940ec1b · 940ec1b · 2026-07-05