Carnegie Mellon 1 Midterm Review 15-213: Introduction to Computer Systems Recitation 8: Monday, Oct. 13, 2014 Lou Clark.

Slides:



Advertisements
Similar presentations
Exam #1 Review By sseshadr. Agenda Reminders – Test tomorrow! One 8.5 x 11 sheet, two sides – Pick up your datalabs in OH – Cachelab comes out tomorrow.
Advertisements

Review of the MIPS Instruction Set Architecture. RISC Instruction Set Basics All operations on data apply to data in registers and typically change the.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Introduction Part 2: Data types and addressing modes dr.ir. A.C. Verschueren.
CSE 351 Midterm Review. Your midterm is next Wednesday Study past midterms (link on the website) Point of emphasis: Registers are not memory Registers.
10/9: Lecture Topics Starting a Program Exercise 3.2 from H+P Review of Assembly Language RISC vs. CISC.
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Topics covered: Floating point arithmetic CSE243: Introduction to Computer Architecture and Hardware/Software Interface.
15213 Recitation Fall 2014 Section A, 8 th September Vinay Bhat.
Carnegie Mellon Floating Point : Introduction to Computer Systems – Recitation January 24, 2011.
Floating Point Numbers
Recitation # Section F Spring 2006 Jernej Barbic.
Floating Point Numbers
Web siteWeb site ExamplesExamples Irvine, Kip R. Assembly Language for Intel-Based Computers, Defining and Using Procedures Creating Procedures.
COE Computer Organization & Assembly Language Talal Alkharobi.
ECE 447 Fall 2009 Lecture 5: TI MSP430 Software Development in C and Assembly pt. 2.
Assembly Programming on the TI-89 Created By: Adrian Anderson Trevor Swanson.
CS 3843 Final Exam Review Fall 2013 December 5, 2013.
1 A Simple but Realistic Assembly Language for a Course in Computer Organization Eric Larson Moon Ok Kim Seattle University October 25, 2008.
Carnegie Mellon Introduction to Computer Systems /18-243, spring 2009 Recitation, Jan. 14 th.
1 Carnegie Mellon Stacks : Introduction to Computer Systems Recitation 5: September 24, 2012 Joon-Sup Han Section F.
Today’s topics Parameter passing on the system stack Parameter passing on the system stack Register indirect and base-indexed addressing modes Register.
Carnegie Mellon 1 Representing Data : Introduction to Computer Systems Recitation 3: Monday, Sept. 9 th, 2013 Marjorie Carlson Section A.
1 Number Systems Lecture 10 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier, 2007.
Carnegie Mellon 1 Midterm Review : Introduction to Computer Systems October 14, 2013.
5. Assembly Language. Basics of AL Program data Pseudo-ops Array Program structures Data, stack, code segments.
Procedures – Generating the Code Lecture 21 Mon, Apr 4, 2005.
CSC 221 Computer Organization and Assembly Language
Microprocessors The ia32 User Instruction Set Jan 31st, 2002.
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Carnegie Mellon 1 Midterm Review : Introduction to Computer Systems Recitation 8: Monday, Oct. 19, 2015 Ben Spinelli.
Chapter 10 Instruction Sets: Characteristics and Functions Felipe Navarro Luis Gomez Collin Brown.
Data Representation : Introduction to Computer Systems Recitation 2: Monday, Jan. 29th, 2015 Dhruven Shah.
1 Carnegie Mellon Welcome to recitation! : Introduction to Computer Systems 3 rd Recitation, Sept. 10, 2012 Instructor: Adrian Trejo (atrejo) Section.
October 1, 2003Serguei A. Mokhov, 1 SOEN228, Winter 2003 Revision 1.2 Date: October 25, 2003.
What is a program? A sequence of steps
Carnegie Mellon 1 Midterm Review : Introduction to Computer Systems Recitation 8: Monday, Oct. 14, 2013 Marjorie Carlson Section A.
Page 1 Computer Architecture and Organization 55:035 Midterm Exam Review Spring 2011.
CS 3843 Computer Organization Prof. Qi Tian Fall 2013
Introduction to Intel IA-32 and IA-64 Instruction Set Architectures.
University of Washington Floating-Point Numbers The Hardware/Software Interface CSE351 Winter 2013.
Carnegie Mellon Midterm Review : Introduction to Computer Systems October 15, 2012 Instructor:
Page 1 Computer Architecture and Organization 55:035 Final Exam Review Spring 2011.
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Programming Model CS 333 Sam Houston State University Dr. Tim McGuire.
7-Nov Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Oct lecture23-24-hll-interrupts 1 High Level Language vs. Assembly.
Introduction to Computer Systems Topics: Assembly Stack discipline Structs/alignment Caching CS 213 S ’12 rec8.pdf “The Class That Gives CMU Its.
FLOATING-POINT NUMBER REPRESENTATION
Section 5: Procedures & Stacks
Recitation 4&5 and review 1 & 2 & 3
Floating Point Number system corresponding to the decimal notation
Introduction to Compilers Tim Teitelbaum
What to bring: iCard, pens/pencils (They provide the scratch paper)
Introduction to Abstract Data Types
Introduction to Intel IA-32 and IA-64 Instruction Set Architectures
Generating a software loop with memory accesses
ECEG-3202 Computer Architecture and Organization
10/4: Lecture Topics Overflow and underflow Logical operations
CS 3843 Midterm Two Review Fall 2013 Prof. Qi Tian.
Lecture 2 SCOPE – Local and Global variables
ECEG-3202 Computer Architecture and Organization
Computer Organization and Assembly Languages Yung-Yu Chuang 2005/12/22
Machine-Level Programming III: Arithmetic Comp 21000: Introduction to Computer Organization & Systems March 2017 Systems book chapter 3* * Modified slides.
Machine-Level Programming III: Arithmetic Comp 21000: Introduction to Computer Organization & Systems March 2017 Systems book chapter 3* * Modified slides.
Computer Organization and Assembly Language
Introduction to Computer Systems Engineering
Chapter 10 Instruction Sets: Characteristics and Functions
Return-to-libc Attacks
15-213: F19 Midterm Review Session
ECE 120 Midterm 1 HKN Review Session.
Presentation transcript:

Carnegie Mellon 1 Midterm Review : Introduction to Computer Systems Recitation 8: Monday, Oct. 13, 2014 Lou Clark

Carnegie Mellon 2 Agenda Midterm Logistics Brief Overview of some topics Practice Questions

Carnegie Mellon 3 Midterm Tues Oct 14 th to Fri Oct 17 th.  Duration – Designed to be take in 80min, but you have up to 4 hrs  If you have not signed up for a slot online, do so now.  You will only be allowed to take it during your slot Cheat Sheet – ONE double sided 8 ½ x 11 paper  No worked out problems in that sheet No office hours after Monday  After that, you can still the list  Responses might be slow due to volume, so be proactive, and read the book/lectures slides carefully beforehand

Carnegie Mellon 4 Midterm What to study?  Chapters 1-3 and Chapter 6 How to Study?  Read each chapter 3 times, work practice problems and do problems from previous exams.  Online practice exam allows you to get a feel for the format of the exam

Carnegie Mellon 5 Bits, Bytes & Integers Know how to do basic bit operations by hand  Shifting, addition, negation, and, or, xor, etc. If you have w bits  What are the largest/smallest representable signed numbers?  What are the largest/smallest representable unsigned numbers?  What happens to the bits when casting signed to unsigned (and vice versa)? Distinguish between logical and bitwise operators What happens in C if you do operations on mixed types (either different size, or signedness?)

Carnegie Mellon 6 Floating Point (IEEE Format) Sign, Exponent, Mantissa  (−1) × × 2  s – sign bit  M – Mantissa/Fraction bits  E – Determined by (but not equal to) exponent bits Bias (2 −1 − 1) Three main categories of floats  Normalized: Large values, not near zero  Denormalized: Small values close to zero  Special Values: Infinity/NaN

Carnegie Mellon 7 Floating Point (IEEE Format) Floating Point Rounding  Round-up – if the spilled bits are greater than half  Round-down – if the spilled bits are less than half  Round to even – if the spilled bits is exactly equal to half

Carnegie Mellon 8

9 Assembly Loops Recognize common assembly instructions Know the uses of all registers in 32 and 64 bit systems Understand how different control flow is turned into assembly  For, while, do, if-else, switch, etc Be very comfortable with pointers and dereferencing  The use of parens in mov commands.  %eax vs. (%eax)  The options for memory addressing modes:  R(Rb, Ri, S)  lea vs. mov

Carnegie Mellon 10 Assembly Loop

Carnegie Mellon 11 Assembly – Stack How arguments are passed to a function  IA-32  X86-64 Return value from a function How these instructions modify stack  call  leave  ret  pop  push

Carnegie Mellon 12 Given assembly code of foo() and bar(), draw a detailed picture of the stack, starting with the caller invoking foo(3, 4, 5).

Carnegie Mellon 13

Carnegie Mellon 14 Array Access A suggested method for these problems:  Start with the C code  Then look at the assembly Work backwards!  Understand how in assembly, a logical 2D array is implement as a 1D array, using the width of the array as a multiplier for access

Carnegie Mellon 15

Carnegie Mellon 16 Caching Concepts Dimensions: S, E, B  S: Number of sets  E: Associativity – number of lines per set  B: Block size – number of bytes per block (1 block per line) Given Values for S,E,B,m  Find which address maps to which set  Is it a Hit/Miss. Is there an eviction  Hit rate/Miss rate Types of misses  Which types can be avoided?  What cache parameters affect types/number of misses?

Carnegie Mellon 17 Questions/Advice Relax! Work Past exams! us -