CMPT 166 Study Guide - Midterm Guide: Von Neumann Architecture, Boilerplate Code, Instruction Set

212 views8 pages

Document Summary

Large storage area: ram (random access memory) is solid state and volatile. Fetching an instruction from memory: decoding the instruction, executing the instruction. Input /output: a computer needs to be able to interact with the world. I/o devices are also called peripherals: micro vs. macro architecture, macroarchitecture: the visible parts, the contract between hardware and software, microarchitecture: the invisible parts, the implementation strategy which affects performance but not semantics. Instruction set architecture: computer architecture: every chip has an instruction set, digital computers use binary representations of data, boolean maps easily onto hardware, essentially means true or false. Introduction to programming: algorithm is the design; software is the implementation of design. Languages: declarative programming expresses the logic of a computation without describing its control flow; what to do. Imperative programming uses statements that change a program"s state; how to do it: there are many languages b/c different tools are needed for different jobs and developers have taste.