On this page
  1. c/compilation_and_internals
  2. Topics

c/compilation_and_internals

Prev: stdlib | Up: c | Next: tutorials
Rel: Compilation, Interpretation & JIT, Python FFI (ctypes)
Ref: cppreference — Translation Phases
Tags: #public #prog #c #internals #compilers #index


Topics

  1. Build Pipeline, Linking & ABI — Preprocessor -> Compiler -> Assembler -> Linker, object files, static vs. shared libraries, and the C ABI.
  2. Preprocessor & Macros — Header guards, macro hygiene (do { ... } while (0)), #/##, and _Generic.
  3. Memory Layout, Alignment & Qualifiers — Stack frames, struct alignment/padding, volatile, restrict, and endianness.
  4. Error Handling & `goto cleanup` — Return codes, errno, and the single-exit goto cleanup teardown pattern.

Linked from

Related notes