CS29206 Systems Programming Laboratory Spring 2024

Schedule

Instructor     Abhijit Das and Pralay Mitra
Timing     Slot N: Thursday 02:00pm – 05:00pm
Venue     CSE Software Labs (Old Building)
Teaching Assistants     Anamika Dey, Debraj Das, Dibya Kanti Haldar, Kunal Singh, Nandita Sharma, Saumyak Raj, Shreyansh Khandelwal

Notices and Announcements

Dec 29, 2023
For space limitations, we cannot accept any non-CSE student in this course.

Books and References


Coverage

DateTopicLocal MaterialReferences
04-Jan-2024Introduction to the course

Common Unix commands

gcc: stages of compilation
Slides

Slides

Slides
Your past, present, and future

Sumitabha Das, Chapters 1–4, or Mark G. Sobell, Chapters 3 and 4

Brian Gough, Sections 11 and 12
11-Jan-2024More on gcc (libraries, options, preprocessor macros)

Introduction to make
Slides

Slides
Brian Gough, Sections 1–4, 10.1

Rehman and Paul, Sections 4.1–4.5
18-Jan-2024Lab Assignment 1 (on multi-file applications and libraries) Statement Solution
25-Jan-2024More on make

Introduction to gdb
Slides

Slides
Rehman and Paul, Sections 4.1–4.5

Rehman and Paul, Sections 5.1–5.7, Persson, Chapter 12
01-Feb-2024Lab Assignment 2 (on the make utility) Statement Solution
01-Feb-2024More on gdb Slides Rehman and Paul, Sections 5.1–5.7, Persson, Chapter 12
08-Feb-2024Lab Assignment 3 (on gdb) Statement
A3.zip
Solution
08-Feb-2024Introduction to valgrind Slides Valgrind home, Sections 4.1–4.3 of manual, Persson, Chapter 12
29-Feb-2024Lab Assignment 4 (on valgrind) Statement
A4.zip
Solution
29-Feb-2024Introduction to gprof Slides Fenlason and Stallman, Sections 1–5
07-Mar-2024Lab Assignment 5 (on gprof) Statement
A5.zip
Solution
Alternative solution (almost as efficient, but 32 times more space-efficient)
07-Mar-2024Regular expressions and grep Slides Mark G. Sobell, Appendix A, Sumitabha Das, Sections 10.1–10.4
14-Mar-2024Introduction to awk Slides Mark G. Sobell, Chapter 12, Sumitabha Das, Chapter 12, Online tutorial
21-Mar-2024Lab Assignment 6 (on gawk) Statement
proc.txt | output.txt
Solution
21-Mar-2024Introduction to bash Slides Mark G. Sobell, Chapter 8, Sumitabha Das, Chapter 13
28-Mar-2024Programming bash Slides Mark G. Sobell, Chapter 8, Sumitabha Das, Chapter 13
04-Apr-2024Lab Assignment 7 (on bash programming) Statement
YouTube Video
Solution: cfrac.sh, clock.sh
08-Apr-2024Lab Test (Quiz) Questions with solutions
Submission Site