-Wall -Wextra -Wpedantic -Werror,MSVC /W4 /WX。-Werror//WX):強迫團隊修復所有警告,消除潛在移植性地雷 (如有號/無號比較、隱性轉換、未使用變數)。#pragma warning/_Pragma 局部抑制,而非降低全域等級。定義:在平台 A (建置機) 產出運行於平台 B (目標機) 的二進制檔。
<target-triplet>-gcc (如 aarch64-linux-gnu-gcc)。crosstool-NG、Buildroot、Yocto、MXE (Windows 交叉編譯 Linux/Windows 目標)。--sysroot 指定。(GCC 最新, GCC LTS, Clang 最新, MSVC 最新) × (Linux, Windows, macOS) × (Debug, Release)。Cppcheck、Clang Static Analyzer、Coverity (商業)。AddressSanitizer、ThreadSanitizer、UndefinedBehaviorSanitizer (GCC/Clang -fsanitize=...) 捕獲執行期未定義行為。