1 / 9

CS61C Review

CS61C Review. Midterm Spring 2008. Five Elements of a Computer. Control Datapath Memory Input Output. Negative Numbers. Sign/Magnitude One's Complement Two's Complement Pros, Cons of Each. C Topics. Pointers! malloc, free Handles Pass by Value vs Pass by Reference

andrewburke
Download Presentation

CS61C Review

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS61C Review Midterm Spring 2008

  2. Five Elements of a Computer • Control • Datapath • Memory • Input • Output

  3. Negative Numbers • Sign/Magnitude • One's Complement • Two's Complement • Pros, Cons of Each

  4. C Topics • Pointers! • malloc, free • Handles • Pass by Value vs Pass by Reference • Arrays • Structs • typedef

  5. Memory Management • Static • The Stack • The Heap

  6. Memory ManagementAllocation Schemes • Best-fit • First-fit • Next-fit • Slab • Buddy

  7. MIPS • R, I, J format instructions (on your green sheet!) • MAL vs TAL • MIPS to Binary, Binary to MIPS • Difference between branches, jumps

  8. Various Other Things • Floats • CALL (Compile, Assemble, Link, Load)

  9. Garbage Collection • Reference Counting • Mark and Sweep • Copying • Pros and Cons

More Related