Monday and Wednesday, 1:25am-2:45pm, WEB L101
Lab sessions on Thursday, WEB L224 CADE
For general information, see the Course Description below.
For CADE lab help hours, see Course Staff below.
Organization and introduction §1
C; Representing numbers §2
Lab 1: match
Lab session: Using gcc and gdb; hello.zip
x86-64 machine model §3.1-5
Representing control flow §3.6
Lab session: More gdb; lab2.zip
Representing procedures §3.7
Lab 2: bomb
In class: mystery.zip
In class: matrix.zip
Lab session: Pointers, arrays, and structs; 3d-array.c
In class: hash.zip
More on optimization §5.9-15
Lab 3: performance
In class: cpe.zip
Lab session: Optimization; lab5.zip
Memory hierarchy, locality, caches §6.1-7
Midterm exam 1; practice exam
No lab session
ELF and relocation §7.7-14
Lab 4: linking
Lab session: Linking and readelf; lab6.zip
In class: process-ex.zip
More on processes §8.4.3-6
Lab 4 due Friday
Lab session: Processes and pstree; lab7.zip
File descriptors §8.4.3-6
Lab 5: shell
In class: signal-ex.zip
Lab session: Signals an process groups; lab8.zip
Virtual memory §9.1-8
Dynamic memory allocation §9.9.1-12
Lab session: Memory management; horror.zip
More on memory allocation §9.9.13-14
In class: malloc_trace.zip
Midterm exam 2; practice exam
Lab 6: malloc
No lab session
Garbage collection §9.10
Network programming §11.1-11.3,11.4.7
Lab session: Using UDP; tick.zip
More network programming §11.4-11.6
Lab 7: server
In class: thread-ex.zip
No lab session: Thanksgiving
In class: sync-ex.zip
The Racket virtual machine
Lab session: HTTP and the server lab; http.zip
Final exam; practice exam
To get help during CADE help hours, please use the CS 4400 Help Queue.
Help hours in the CADE lab and using the Help Queue:
The objective of this course is to help students bridge the gap between high-level programming and actual computer systems: processors, the memory hierarchy, operating systems, compilers, linkers, assemblers, networks, and more. Our basic goal is to understand how a computer works, so that as programmers we can make it work efficiently. Thus, this course is an introduction to computer systems from a programmer’s point of view.
The official prerequisite for this course is CS 3810 (Computer Organization). It is strongly recommended that students complete CS 3505 (Software Practice II) before taking this class.
The required course text is
Computer Systems: A Programmer’s Perspective, 3rd edition
Bryant and O’Hallaron
Prentice-Hall, 2016 (ISBN: 0-13-409266- X)
A highly recommended book is
The C Programming Language, 2nd edition
Kernighan and Ritchie
Prentice-Hall, 1988 (ISBN: 978-0131103627)
Because this is a 4-unit course, there is a significant amount of lab work in the form of programming assignments. (For historical reasons, the programming assignments are called “labs” – not to be confused with the “lab sessions” that are held on Thursdays, although the latter are certainly meant to support the former.)
The lab assignments make heavy use of C, Unix, and the x86-64 architecture. Students not currently fluent in any of these three topics should not panic, as this course will cover them in more detail throughout the semester. However, there is an assumption that students have some familiarity with C or C++. Students should be prepared to learn some of the C programming language on their own, for which the Kernighan and Ritchie reference text will be very useful.
All lab solutions work must use an x86-64 processor that has a Unix OS. Code must be in ANSI standard C; nothing else will work. Unless explicitly noted otherwise, grading of assignments will be done using CADE Lab 1 machines. Students who choose to develop their code on any other machine are strongly encouraged to run their programs on a CADE Lab 1 machine before turning it in. There will be no credit for programs that do not compile and run on a CADE Lab 1 machine, even if they run somewhere else.
CADE Lab 1 machines are numbered 1-48 and have names lab1-x.eng.utah.edu, where x is the machine number. For more information on the CADE lab and how to remotely log into these machines, see http://www.cade.utah.edu.
Programming assignments are due by 11:59pm on the due date via electronic submission. Late programming assignments are accepted according to the following rules:
Assignments are not accepted more than 3 days after the due date.
Assignments submitted any time X days after the due date (midnight to 11:59pm) are penalized X times 10% of the assignment grade.
Video lectures will be posted to the schedule above some days before a class meeting on the topic. The videos will cover material similar to the corresponding sections of the textbook (to summarize the book content) and will also introduce additional material (such as walk-throughs of example programs). Students are expected to watch the relevant videos before class.
The content of the video lectures will not be covered or summarized in class. Instead, the instructor will proceed on the assumption that everyone has seen the material in the videos. The class meeting will provide additional explorations of the topic and will feature students working with the rest of the class to solve problems. Lab sessions will be similar, but in smaller groups and often on topics that are even more specific, practical, and/or related to the current lab assignment.
Students are expected to participate in class by taking a turn presenting a solution to a lab assignment, by working through a problem for the class in lecture or lab, or by a similarly prominent form of participation. Class participation is a component of the course grade.
Most Wednesdays before class, a new quiz will be available on Canvas. This will be due the following Monday prior to class. (Some weeks will not have a quiz, due to holidays and tests.) The purpose of the quizzes is twofold: to check whether students have understood the videos and readings ahead of class, and to provide problems that are representative of those that will appear on the tests. Students will have three attempts to take the quiz; they are automatically graded, and the highest score of three tries will be recorded. Quizzes cannot be taken late.
Two midterm exams will take place during the semester (see tentative dates on the schedule). The final exam is cumulative and will take place in class on the last day of class (December 7).
Final grades will be calculated as follows:
Midterm exam 1
Midterm exam 2
All lab assignments and quizzes will be weighted equally
For questions outside of class and consulting hours, students are encouraged to use the mailing list in Canvas. Whenever the question is a clarification on the assignment and not giving away the answers, feel free to post to the entire class. When in doubt, only send the question to the TAs and Instructor.
Students are encouraged to discuss lab-work assignments and problem sets with fellow classmates, but each student is responsible for writing her own answer.
Cheating is sharing code or other electronic files either by copying, retyping, looking at, or supplying a copy of a file.
Cheating is not discussing concepts, answering questions about concepts or clarifying ambiguities, helping someone understand how to use the computer systems or basic tools (compiler, debugger, etc.), or helping with high-level design issues or general debugging.
Except when explicitly designated otherwise, each assignment is to be done individually. For all assignments, the solution submitted by each student will be checked against the solutions of other students (from this year’s class, as well as, previous years) for anomalies. If an anomaly is found that cannot be explained satisfactorily, the students involved will fail the course.
Of course, there must be no collaboration during examinations. Please see the University of Utah Student Code for a detailed description of the university policy on cheating.
All students are expected to maintain professional behavior in the classroom setting, according to the University of Utah Student Code. Students should read the Code carefully and know that they are responsible for the content. According to Faculty Rules and Regulations, it is the faculty responsibility to enforce responsible classroom behaviors, beginning with verbal warnings and progressing to dismissal from class and a failing grade. Students have the right to appeal such action to the Student Behavior Committee.
For information on withdrawing from courses, appealing grades, and more, see the college’s academic guidelines.
The University of Utah seeks to provide equal access to its programs, services and activities for people with disabilities. If you will need accommodations in the class, reasonable prior notice needs to be given to the Center for Disability Services, 162 Union Building, 581-5020 (V/TDD). CDS will work with you and the instructor to make arrangements for accommodations.