Feature: Preprocessor
C 预处理器在词法层做文本替换:17 条指令、对象式与函数式宏、字符串化与记号粘贴、include 搜索顺序与条件编译;本页用 X-macro 展示单一数据源,并列出双求值与粘贴失败等陷阱。
C 预处理器在词法层做文本替换:17 条指令、对象式与函数式宏、字符串化与记号粘贴、include 搜索顺序与条件编译;本页用 X-macro 展示单一数据源,并列出双求值与粘贴失败等陷阱。
C 程序从翻译单元到进程要经过符号解析、重定位、静态或动态链接与装载,本页给出这条链上每一步的判据、命令与故障定位顺序。
Vite, Webpack, pnpm and Vitest: how source becomes a bundle, a dependency tree and a test result.
从 go build 的缓存键、-trimpath 与 -buildvcs 讲到 -ldflags 注入、GOOS/GOARCH 矩阵与 CGO_ENABLED=0 静态链接,并覆盖 -s -w 的体积代价、//go:embed 的嵌入规则、多阶段镜像与 go version -m 溯源。
Maven lifecycles and POM inheritance, the Gradle task graph, dependency resolution and the rules that make a build reproducible.
Cargo as resolver, builder and workspace owner, plus the fmt, clippy, test and audit gates that keep a Rust repository reproducible.
CMake 用 target 承载编译与链接属性,用生成器产出 Ninja 或 Visual Studio 工程,用 install/export 把使用要求交给下游;本页说明属性如何传播、预设如何固定,以及链接期故障如何定位。
C 编译器驱动把每个 .c 走完预处理、编译、汇编、链接四段;本页给出四段的命令与产物、头文件搜索与 -std/-O/-g/警告/严格别名/可复现/交叉编译的取舍,并按阶段定位典型故障。
gcc、clang、msvc 把同一份源码翻译成互不兼容的二进制:`-std` 决定语言与库特性,ABI 开关决定两个目标文件能否链接,本页按这两条线组织编译器的选择与排障。
C++ 没有中央包仓库,依赖由 vcpkg、Conan、CPM 或手工 vendoring 各自解决;本页说明包的真实身份为何是版本加 ABI 元组,以及二进制缓存、许可证与供应链检查如何落地。
Make 用规则与时间戳做增量构建,CMake 用 target 与属性描述依赖再生成 Ninja/Make 工程;本页给出两者的完整机制、同一项目的最小双实现、生成器与 preset 选择,以及依赖文件与 install/export 的故障定位。
The import system, the src layout, pyproject build backends, wheels and sdists, and the environment and lock tools that make a resolution reproducible.
Executable jars, jlink and jpackage, native images, reproducible artifacts and the publish step that follows.
从 go test 的包选择、表驱动与 t.Run 子测试,到 -race 的开销、-benchmem 与 benchstat 的对比方法、fuzz 与覆盖率门禁,并说明 CPU、heap、block、mutex profile 与 trace 各自回答什么问题。遇到缓存假绿、flaky 与覆盖率停滞时能按信号定位。
从 go 与 toolchain 指令、GOTOOLCHAIN 的切换规则讲到 MVS 算出的构建列表,覆盖 go.sum 校验、replace、retract、vendor 与私有模块代理。遇到 checksum mismatch、inconsistent vendoring 或 go.mod 版本要求不满足时,能按信号定位根因。
GVM and the Go toolchain: version management, modules and reproducible builds.