Developer Tools

The terminal, gcc and its warnings, error messages, header files, make, gdb, testing and Git: the tools around the code.

  1. 1

    The terminal

    Move around folders, run programs, and send files into and out of a program with <, > and |.

  2. 2

    Compiling with gcc

    Turn a .c file into a program, switch on warnings, and see the four steps gcc goes through.

  3. 3

    Reading error messages

    What a compiler error says, which one to fix first, and the bugs that no compiler can catch.

  4. 4

    Programs in many files

    Split a program into .h and .c files, use include guards, and compile the parts separately.

  5. 5

    Building with make

    Write a Makefile so one command rebuilds exactly the files that changed.

  6. 6

    Debugging with gdb

    Stop a program at a line, step through it, and print its variables with the gdb debugger.

  7. 7

    Testing your code

    Check your functions with assert, choose edge cases, and compare a program's output with diff.

  8. 8

    Version control with Git

    Save snapshots of your project with Git, see what changed, work on branches, and share with GitHub.