This chapter is a reference to the tools that turn source code into a running program and to the libraries and formats that programs in this area commonly use. It begins with the build: cross-compilation §12.1 for a processor other than the one that runs the compiler; the toolchain §12.2 of compiler, assembler and linker §12.4; compiler flags §12.3; linker scripts §12.5, which place code and data at chosen addresses; the ELF §12.6 (Executable and Linking Format) and Intel HEX §12.7 file formats; symbol tables §12.8 and debugging information §12.9; link-time optimization §12.10 and dead-code elimination §12.11; and the build tools CMake §12.12, Ninja §12.13 and Make, together with West §12.15, the command-line tool of the Zephyr real-time operating system §6.33, and the Zephyr software development kit §12.16. It continues with compilers, C libraries for small devices, a cryptography library, and the Linux Bluetooth software with the message bus through which programs talk to it.
The second half covers Python §12.23, the language of most host-side tools in this area: virtual environments §12.24; the data formats YAML (YAML Ain’t Markup Language), JSON §12.26 (JavaScript Object Notation), JSON Schema §12.27 and canonical JSON §12.28; libraries for numerical work, plotting and testing, including parallel test runs and property-based testing §10.7; libraries that disassemble machine code, read ELF files and open serial ports; and the standard modules for command-line arguments, binary layouts, file paths, child processes, file locks, terminals, waiting on several inputs at once, regular expressions §12.44, data classes and type hints §12.46. The final entries explain what lies beneath every compiled program: the native application binary interface §12.47, the encodings of Unicode §12.48 text, how an operating system loads an ELF file into a running process, and how relocation §12.50 turns a symbolic reference into exact encoded bits.