Carnegie Mellon 1 Midterm Review 15-213: Introduction to Computer Systems Recitation 8: Monday, Oct. 19, 2015 Ben Spinelli.

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

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.
Microprocessors General Features To be Examined For Each Chip Jan 24 th, 2002.
Intel Computer Architecture Presented By Jessica Graziano.
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.
University of Washington Today Topics: Floating Point Background: Fractional binary numbers IEEE floating point standard: Definition Example and properties.
Carnegie Mellon Floating Point : Introduction to Computer Systems – Recitation January 24, 2011.
Instruction Set Architecture & Design
1 ICS 51 Introductory Computer Organization Fall 2006 updated: Oct. 2, 2006.
Floating Point Numbers
Floating Point Numbers
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.
Instruction Set Design by Kip R. Irvine (c) Kip Irvine, All rights reserved. You may modify and copy this slide show for your personal use,
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.
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.
Computer Architecture and Organization
Microprocessors The ia32 User Instruction Set Jan 31st, 2002.
Computer Architecture Lecture 22 Fasih ur Rehman.
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
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.
Carnegie Mellon 1 Midterm Review : Introduction to Computer Systems Recitation 8: Monday, Oct. 13, 2014 Lou Clark.
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.
1 Floating Point. 2 Topics Fractional Binary Numbers IEEE 754 Standard Rounding Mode FP Operations Floating Point in C Suggested Reading: 2.4.
7-Nov Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Oct lecture23-24-hll-interrupts 1 High Level Language vs. Assembly.
1 Machine-Level Programming V: Control: loops Comp 21000: Introduction to Computer Organization & Systems March 2016 Systems book chapter 3* * Modified.
Introduction to Computer Systems Topics: Assembly Stack discipline Structs/alignment Caching CS 213 S ’12 rec8.pdf “The Class That Gives CMU Its.
Recitation 4&5 and review 1 & 2 & 3
Floating Point Number system corresponding to the decimal notation
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
Machine-Level Programming V: Control: loops Comp 21000: Introduction to Computer Organization & Systems Systems book chapter 3* * Modified slides from.
Generating a software loop with memory accesses
ECEG-3202 Computer Architecture and Organization
CS 3843 Midterm Two Review Fall 2013 Prof. Qi Tian.
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.
Machine-Level Programming V: Control: loops Comp 21000: Introduction to Computer Organization & Systems Systems book chapter 3* * Modified slides from.
Computer Organization and Assembly Language
Introduction to Computer Systems Engineering
Chapter 10 Instruction Sets: Characteristics and Functions
Lecture 9: Shift, Mult, Div Fixed & Floating Point
ECE 120 Midterm 1 HKN Review Session.
Presentation transcript:

Carnegie Mellon 1 Midterm Review : Introduction to Computer Systems Recitation 8: Monday, Oct. 19, 2015 Ben Spinelli

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

Carnegie Mellon 3 Midterm Tues Oct 20 th to Fri Oct 23 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  Bring your student ID with you Note Sheet – ONE double sided 8 ½ x 11 paper  No worked out problems on that sheet No office hours this week  You can still the list  But 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  Some old practice exams include questions that use the IA32 architecture. You will only need to know x86-64 for the midterm.

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 are exactly equal to half

Carnegie Mellon 8

9 Assembly Loops Recognize common assembly instructions Know the uses of all registers in 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.  %rax vs. (%rax)  The options for memory addressing modes:  R(Rb, Ri, S)  lea vs. mov

Carnegie Mellon 10 Assembly Loop b6 : 4004b6: mov $0x0,%eax 4004bb: jmp 4004d3 4004bd: movslq %eax,%rdx 4004c0: lea (%rdi,%rdx,4),%rcx 4004c4: mov (%rcx),%edx 4004c6: test $0x1,%dl 4004c9: jne 4004d0 4004cb: add $0x1,%edx 4004ce: mov %edx,(%rcx) 4004d0: add $0x1,%eax 4004d3: cmp %esi,%eax 4004d5: jne 4004bd 4004d7: repz retq

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

Carnegie Mellon 12 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 13

Carnegie Mellon 14 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 15 Questions/Advice Relax! Work Past exams! us -