CS 213: Introduction to Computer SystemsSeth Copen Goldstein and Andreas G. NowatzykCarnegie Mellon UniversitySpring 20041 OrganizationInstructors:Seth Copen Goldstein Andreas G. NowatzykWeH 7122 NSH 4117x8-3828 x8-4846seth@cs agn@csWed 1–2pm Tue 3–4pmTAs:Ningning Hu Carolyn Au David Charlton David Fields Mike NollenSection A Section B Section C Section D Section EWeH 8205 WeH 3108 WeH 3108 WeH 3108 WeH 3108hnn@cs cyin@andrew dac4@andrew dcf@andrew mnollen@andrewTue 5–6pm Wed 3–4pm Fri 11:30–12:30pm Wed 12:30am–1:30pm Thu 3–4pmNaju MancherilSection FWeH [email protected] 4:30–5:30pmClass Assistant:Norene MearsWean 7114(412) 268-4750nm10@andrewLecture:Tue/Thu 9:00–10:20, Wean Hall 75001Recitations:A Mon 10:30–11:20 OSC (Old Student Center) 203 Ningning HuB Mon 11:30–12:20 OSC (Old Student Center) 203 Carolyn AuC Mon 12:30–1:20 OSC (Old Student Center) 203 David CharltonD Mon 1:30–2:20 OSC (Old Student Center) 203 David FieldsE Mon 2:30–3:20 OSC (Old Student Center) 203 Mike NollenF Mon 3:30–4:10 OSC (Old Student Center) 203 Naju MancherilWeb page: www.cs.cmu.edu/afs/cs/academic/class/15213-s04/www/Newsgroup: cmu.cs.class.cs213Staff Mailing List: staff-213@cs2 ObjectivesOur aim in CS 213 is to help you become a better programmer by teaching you the basic concepts underlyingall computer systems. We want you to learn what really happens when your programs run, so that whenthings go wrong (as they always do) you will have the intellectual tools to solve the problem.Why do you need to understand computer systems if you do all of your programming in high level lan-guages? In most of computer science, we’re pushed to make abstractions and stay within their frameworks.But, any abstraction ignores effects that can become critical. As an analogy, Newtonian mechanics ignoresrelativistic effects. The Newtonian abstraction is completely appropriate for bodies moving at less than ,but higher speeds require working at a greater level of detail.Oversimplifying matters somewhat, our 21sequence works as follows: 211 is based on a simplified modelof program execution. 212 builds further layers of abstraction. 213 introduces greater detail about systembehavior and operation. This greater detail is needed for optimizing program performance, for workingwithin the finite memory and word size constraints of computers, and for systems-level programming.The following “realities” are some of the major areas where the abstractions we teach in 211/212 breakdown:1. Int’s are not integers, Float’s are not reals. Our finite representations of numbers have significantlimitations, and because of these limitations we sometimes have to think in terms of bit-level repre-sentations.2. You’ve got to know assembly language. Even if you never write programs in assembly, Thebehavior ofa program cannot be understood sometimes purely based on the abstraction of a high-level language.Further, understanding the effects of bugs requires familiarity with the machine-level model.3. Memory matters. Computer memory is not unbounded. It must be allocated and managed. Memoryreferencing errors are especially pernicious. An erroneous updating of one object can cause a changein some logically unrelated object. Also, the combination of caching and virtual memory provides thefunctionality of a uniform unbounded address space, but not the performance.4. There is more to performance than asymptotic complexity. Constant factors also matter. There aresystematic ways to evaluate and improve program performance25. Computers do more than execute instructions. They also need to get data in and out and they interactwith other systems over networks.By the end of the course you will understand these “realities” in some detail. As a result, you will beprepared to take any of the upper level systems classes at Carnegie Mellon (both CS and ECE). Even moreimportant, you will have learned skills and knowledge that will help you throughout your career.3 TextbookThe primary textbook for the course isRandal E. Bryant and David R. O’Hallaron, Computer Systems: A Programmer’s Perspective,Prentice Hall, 2003.In addition, we recommend that you acquire a reference book on the C programming language. The follow-ing two are excellent choicesBrian W. Kernighan and Dennis M. Ritchie, The C Programming Language, Second Edition,Prentice Hall, 1988.Samuel P. Harbison and Guy L. Steele Jr., C: A Reference Manual, Fifth Edition, Prentice Hall,2002.4 Course OrganizationYour participation in the course will involve five forms of activity:1. Attending the lectures.2. Preparing for and participating in the recitations.3. Laboratory assignments.4. Reading the text.5. ExamsAttendance will not be taken at the lectures or recitation sections. You will be considered responsible forall material presented at the lectures and recitations. Lectures will cover higher-level concepts. Recitationswill be more applied, covering important “how-to’s”, especially in using tools that will help you do the labs.In addition, the recitations will help clarify lecture topics and describe exam coverage.The textbook contains both practice problems within the chapter text and homework problems at the end ofeach chapter. The intention is that you work on the practice problems right as you are reading the book.3The answers to these problems are at the end of each chapter. Our experience has been that trying out theconcepts on simple examples helps make the ideas more concrete. In addition, the schedule (at the end ofthis document and on the class web page) shows specific homework problems with each lecture topic. Theintention is that you try these out and discuss them in the next recitation. You will find that you will getmuch more out of recitation if you have done some advance preparation.The only graded assignments in this class will be a set of 7 labs. Some of these are fairly short, requiringjust one week, while others are more ambitious, requiring several weeks. Most labs will be handed out inclass on Thursday and due either one or two weeks later on a Wednesday.5 Getting HelpFor urgent communication with the teaching staff, it is best to send electronic mail (preferred) or to phone.If you want to talk to a staff member in person, remember that our posted office hours are merely timeswhen we guarantee that we will be in our offices. You are always welcome to visit us outside of office hoursif you need help or want to talk
View Full Document