Handouts

Handouts are related to things we've done in class. If the file is of type .tgz (e.g., foo.tgz is the file name), that means you should run tar xvzf foo.tgz to unpack the contents.

Date Lecture Section 1 Section 2
Prerequisites Number Systems ; on Important Terms you must know;
integer representations; questions; questions with answers;
character representation; questions; questions with answers;
09/02 1 Intro code from Lecture 1 ; Notes 01_ppt ; 01_ppt(4pages/sheet) ; Intro code
09/04 2 Example C code from Lecture 2 ; Notes 02_ppt ; 02_ppt(4pages/sheet) ; Intro to C examples
09/09 3 Example C code from Lecture 3 ; Notes 03_ppt ; 03_ppt(4pages/sheet) ; Examples on Pointers & Arrays
09/11 4 Example C code from Lecture 4 ; Notes 04_ppt ; 04_ppt(4pages/sheet) ; Examples on Pointers & "Structs, Union"
09/14 and 09/16 5&6 Example C code from Lecture 5
Includes linked list code
Notes
05_ppt ; 05_ppt(4pages/sheet) ; Examples on mem.layout, stack, simple linked list"

06_ppt ; 06_ppt(4pages/sheet) ; Examples on doubly linked list, detailed singly linked list"
09/18 7 Notes (1) ; Notes (2) 07_ppt ; 07_ppt(4pages/sheet) ;
09/21 8 Notes 08_ppt ; 08_ppt(4pages/sheet) ;
09/23 9 Notes ; x86 Cheat Sheet 09_ppt ; 09_ppt(4pages/sheet) ;
Handout-Arith.pdf ;
x86 Cheat Sheet ; x86 Instruction Manual ;
09/25 10 10_ppt ; 10_ppt(4pages/sheet) 10_ppt ; 10_ppt(4pages/sheet) ;
Handout-Compare.pdf ;
Handout-Logical.pdf ;
09/28 11 Notes 11_ppt ; 11_ppt(4pages/sheet) ;
09/30 12 Assembly examples x86 examples(factorial,string length,find max,count bits) from lectures 11 and 12.tgz ;
10/02 13 Code for Array review with corresponding objdump x86 assembly.tgz ;
10/05 14 Midterm1 Review Slides
Solutions for some parts of Practice Exam ;
10/07 15 Notes 15_ppt ; 15_ppt(4pages/sheet) ;
Examples on simple function calls";
Handout-CallReturn.pdf ;
10/09 16 Notes 16_ppt ; 16_ppt(4pages/sheet) ;
Examples on simple function calls and Calling conventions";
10/12 17 Notes ;
Example x86 code
17_ppt ; 17_ppt(4pages/sheet) ;
Example code on recursion, arrays and struct;
10/14 18 Notes ;
Example stack smashing code
18_ppt ; 18_ppt(4pages/sheet) ;
Examples on stack smashing vulnerable code and exploit generator;
10/16 19 Notes ;
19_ppt ; 19_ppt(4pages/sheet) ;
10/19 20 Notes ;
20_ppt ; 20_ppt(4pages/sheet) ;
Example code on Timed rowmajor/colummajor array copy;
10/21 21 Notes ;
21_ppt ; 21_ppt(4pages/sheet) ;
10/23 22 Cache Examples ;
Notes ;
22_ppt ; 22_ppt(4pages/sheet) ;
Matrix Multiplication Example from Textbook with different strides;
10/26 23 Notes ;
See Leo's links for code
Review lecture on Caches - 23_ppt ;
Review lecture on Caches - 23_ppt(4pages/sheet) ;
10/28 24 Notes ;
24_ppt ; 24_ppt(4pages/sheet) ;
10/30 25 Notes ;
25_ppt ; 25_ppt(4pages/sheet) ;
I/O examples: RIO code from CSAPP, file descriptor sharing, forking children etc.;
11/02 26 Notes ;
26_ppt ; 26_ppt(4pages/sheet) ;
11/04 27 Notes ;
27_ppt ; 27_ppt(4pages/sheet) ;
11/06 28 Notes ;
Example signal code ;
28_ppt ; 28_ppt(4pages/sheet) ;
Example code for signal handling ;
11/09 29 Practice exam notes Jason makes not guarantees that these answers are correct.
All example code for midterm2 put together

Midterm review slides (subset of slides from past) ; Midterm review slides (4 pages/sheet)(subset of slides from past) ;

Solution to the Practice Exam - Might contain mistakes that I am not aware of;
11/11 30 Notes ;
30_ppt ; 30_ppt(4pages/sheet) ;
11/13 31 Notes ;
31_ppt ; 31_ppt(4pages/sheet) ;
11/16 32 Notes ;
32and33_ppt ; 32and33_ppt(4pages/sheet) ;

11/18 33 VM worksheet ;
Notes ;
32and33_ppt ; 32and33_ppt(4pages/sheet) ;
In class example end to end translation ;
11/20 34 Notes ;
34_ppt ; 34_ppt(4pages/sheet) ;
11/23 35 Notes ;
35_ppt ; 35_ppt(4pages/sheet) ;
11/25 36 Notes ;
36_ppt ; 36_ppt(4pages/sheet) ;
11/30 37 Notes ;
37and38_ppt ; 37and38_ppt(4pages/sheet) ;
12/02 38 Notes ;
37and38_ppt ; 37and38_ppt(4pages/sheet) ;
12/04 39 Notes ;
39_ppt ; 39_ppt(4pages/sheet) ;
12/07 40 Slides 40_ppt ; 40_ppt(4pages/sheet) ;
12/09 41 Lecture 41 notes ;
Lecture_41_code.tgz ;
12/11 42 None None
12/14 43 Notes
Copier ate my notes. Please excuse any extra pages, etc. Jason makes no guarantees that these answers are correct.
Notes ;
Copier ate my notes. Please excuse any extra pages, etc. Jason makes no guarantees that these answers are correct.