CS2013 Systems Programming

Offered during July-Nov 2025

Department of Computer Science and Engineering @ IIT Palakkad, Kerala, India

Lab 09 -- C Programming - Files, GDB, Valgrind, Linked lists

This page gives an overview of the lecture and the lab session on Sep 25, 2025.

Short lecture summary

Readings

  1. Peter Jay’s GNU Debugger write-up

    An excellent and in-depth write up on how to get the most out of GDB.

    Read Chapter

  2. C Programming A Modern Approach (2nd Ed) by K. N. King (Online version)

    dis

    Read chapters

  3. Dive Into Systems by Suzanne J. Matthews, Tia Newhall, Kevin C. Webb (Online version)

    dis

    Read chapters

  4. Using Valgrind and interpreting the error messages, see this write-up.

Practise

  1. Work out the problems in this tutorial on GDB.

  2. A tutorial on valgrind usage with an explanation of its output.

Additional readings