CS312-CH1 - Chapter 1 Click to edit Master subtitle style Computer Abstractions and Technology In Chapter 1 Introduction Below Your Program Under

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Click to edit Master subtitle style 8/27/09 Computer Abstractions and Technology Chapter 1:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8/27/09 In Chapter 1 Introduction Below Your Program Under the Covers Abstraction
Background image of page 2
8/27/09 Introduction Computers are amazing! Hey, I have to use some material from the book. If I really had to tell you that you wouldn’t be here. What are some of the major computing accomplishments? Cell phones ATMs
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8/27/09 Computer Classes Desktop – Do I need to go on? Server – Accessed over network. Wide variety – simple as a desktop up to a super computer “Serve” information to clients Embedded computers – Inside other devices Small low power devices
Background image of page 4
8/27/09 Below Your Program Computers are electronic machines, so we must communicate with them in machine language a.k.a. binary . 0 and 1’s called bits 8 bits makes up a byte Ex: 01101100 This is how the first programs were written (both instructions and data) The computer does exactly as it is instructed, if not reboot with F8 in Safe Mode.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8/27/09 Below Your Program Cont. For some reason programmers found this tedious – developed assembly language Ex: add A,B,C More human like Originally decoded by hand Still requires one line per instruction The assembler was created to translate this into machine language
Background image of page 6
8/27/09 Below Your Program Cont. High-level programmers take advantage of this with one additional step – the compiler . Allows more complex statements Ex: A = B + C; More than one operation per line (to the user) Sanity to the user Truly cross-platform The compiler turns high-level code into assembly and then assembly to binary.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8/27/09 Below Your Program Cont. s w a p ( in t v [], in t k ) { i n t t e m p ; t e m p = v [ k ]; v [ k ] = v [k + 1 ]; v [ k + 1 ] = t e m p ; } s w a p : m u li $ 2 , $ 5 , 4 a d d $ 2 , $ 4 , $ 2 l w $ 1 5 , 0 ( $ 2 ) l w $ 1 6 , 4 ( $ 2 ) s w $ 1 6 , 0 ( $ 2 )
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/26/2009 for the course CS 312 taught by Professor Tornaritis,s during the Spring '08 term at Southern Illinois University Edwardsville.

Page1 / 36

CS312-CH1 - Chapter 1 Click to edit Master subtitle style Computer Abstractions and Technology In Chapter 1 Introduction Below Your Program Under

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online