{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CS312-CH1 - Chapter 1 Click to edit Master subtitle style...

Info icon This 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:
Image of page 1

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

View Full Document Right Arrow Icon
8/27/09 In Chapter 1 Introduction Below Your Program Under the Covers Abstraction
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 Human Genome
Image of page 3

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

View Full Document Right 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
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.
Image of page 5

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

View Full Document Right 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
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.
Image of page 7

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

View Full Document Right 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 ) s w $ 1 5 , 4 ( $ 2 ) j r $ 3 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0
Image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern