UB Catalog information for CSE 220
This information is advisory only. The authoritative course description and requirements for a given semester are defined by the course syllabus.
This course is a required course in the 2018 and later curriculum. It covers low-level systems programming in userspace at the userspace/kernel boundary. Students will learn about the C programming language, system calls, memory management, threads, and concurrency.
OfferingsSpring 2019, Fall 2019, Spring 2020, Fall 2020, Spring 2021, Fall 2021, Spring 2022, Fall 2022, Spring 2023
Current Offering: Spring 2022
|Lecture||A: MWF 9:00-9:50, Cooke 121|
|Lab||A1-A9: Check HUB|
Mo 14:00-14:50, Davis 334
Th 10:00-11:30, Zoom
|TA Office Hours||(See Piazza)|
|Introduction to CSE 220 and C (pdf)||2022-01-31|
|Variables, Strings, and Loops (pdf)||2022-02-02|
|Conditionals and Control Flow (pdf)||2022-02-04|
|Conditionals and Control Flow (continued)||2022-02-07|
|Memory and Pointers (pdf)||2022-02-09|
|Programming Practices (pdf)||2022-02-11|
|Programming Practices (continued)||2022-02-14|
|A Tour of Computer Systems (pdf)||2022-02-16|
|Memory Allocation (pdf)||2022-02-18|
|Integers and Integer Representation (pdf)||2022-02-21|
|Memory Allocation (continued)||2022-02-23|
|Integers and Integer Representation (continued)||2022-02-25|
|Alignment, Padding, and Packing (pdf)||2022-02-28|
|Alignment, Padding, and Packing||2022-03-02|
|Floating Point Numbers (pdf)||2022-03-04|
|Bitwise Operations (pdf)||2022-03-11|
|Midterm Review (pdf)||2022-03-14|
|Process Anatomy (pdf)||2022-03-28|
|The Compiler and Toolchain (pdf)||2022-04-01|
|Compiler Optimization (pdf)||2022-04-04|
|Dynamic Memory Allocation (pdf)||2022-04-08|
|Virtual Memory (pdf)||2022-04-13|
|Caching and Locality (pdf)||2022-04-18|
|Processes, Threads, and Concurrency (pdf)||2022-04-22|
|Races and Synchronization (pdf)||2022-04-27|
|POSIX Threads and Synchronization (pdf)||2022-05-02|
|The Kernel and User Mode (pdf)||2022-05-09|
Students are expected to have a solid grasp of simple data structures (such as lists and arrays) and some programming experience. (CSE 116 or equivalent experience.)
There are two texts for this course:
Computer Systems: A Programmer’s Perspective, Third Edition, by Randal Bryant and David O’Hallaron.
The C Programming Lanuage, Second Edition, by Brian W. Kernighan and Dennis M. Ritchie.
Both of these books are truly excellent, and I recommend that you consider buying a copy to keep for your career.
Unfortunately CS:APP is quite expensive (more expensive than I would expect, given the number of copies that must be sold per year!). The least expensive legitimate method I am aware of for purchasing this book is RedShelf I do know that there is a Second International Edition PDF floating around the Internet that students often pirate; be warned that it has many errors and is different from the required Third Edition text. If you are purchasing a used textbook online, try to make sure you are getting the US Edition, as the International Edition has more errors.
The ultimate authority for course policies is the course syllabus. However, my general academic integrity policy can be found here and my list of policies is here
The topics to be covered in this course include:
- The C programming language
- Compiler and linker invocation and their roles in program development
- Version control, build, and other systems
- Representation of in-memory data structures
- Memory management
- The kernel/userspace boundary and the system call interface
- Synchronization primitives and concurrency
You can find advice for succeeding in CSE 220 here. This is likely to be one of the more difficult courses you take in your career at UB, both due to the content of the course and to the position it has in the curriculum. Work hard, ask questions, and get help when you need it.
This course will be conducted in-person, pending contradictory guidance from SUNY or the University at Buffalo. Students are expected to attend lectures and labs unless they have a University-approved reason to miss. Students must not attend if they are unwell or have reason to believe that they may have contracted COVID-19, with or without noticeable symptoms.
The primary deliverables for this course are weekly labs and several larger projects. Labs will consist of short exercises intended to deepen student understanding of course material (and perhaps cover background material for course projects), and will be evaluated in-lab. Course projects will be C language implementations of concepts discussed in class. Projects and labs will make up about half of the final course grade, with the remainder being quizzes and exams.
There is one midterm and one (cumulative) final for this course. These written exams cover theoretical and fundamental materials beyond the specific implementation details required for the programming assignments and labs. A variety of short quizzes will cover lecture content, lab procedures, course policies, and other important material.
There are no graded homeworks for this course. Written homework assignments may be given to help students understand the material, and any material covered in homeworks may appear on exams or quizzes, but such assignments will not be directly evaluated.
All projects for this course must be implemented in C and compile and run correctly on the course-provided virtual machine image. Students will be expected to use version control and appropriate build tools (such as make) to manage their projects.