Series

C-MCU

2 posts

  1. 1
    [C-MCU] 1. The build process of a C program
    · What happens between a .c file and an executable: preprocessing, compiling, assembling and linking, shown with gcc on a small three-file example.
  2. 2
    [C-MCU] 2. Memory Layout in a C program
    · The .text, .data, .bss, heap and stack regions of a C program, how the linker script defines them, and a Cortex-M4 debug session checking every variable's address against the theory.