computer programming languages how computers work ècircuits èbinary digit èbit (0 or 1) èbyte -...

9
Computer Programming Languages

Upload: rosanna-hubbard

Post on 17-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Computer Programming Languages HOW COMPUTERS WORK èCIRCUITS èBINARY DIGIT èBIT (0 OR 1) èBYTE - 8 BITS èASCII

Computer Programming

Languages

Page 2: Computer Programming Languages HOW COMPUTERS WORK èCIRCUITS èBINARY DIGIT èBIT (0 OR 1) èBYTE - 8 BITS èASCII

HOW COMPUTERS WORK

CIRCUITSBINARY DIGITBIT (0 OR 1)BYTE - 8 BITSASCII

Page 3: Computer Programming Languages HOW COMPUTERS WORK èCIRCUITS èBINARY DIGIT èBIT (0 OR 1) èBYTE - 8 BITS èASCII

PROGRAMMING LANGUAGES

Low Level Vs High Level

Page 4: Computer Programming Languages HOW COMPUTERS WORK èCIRCUITS èBINARY DIGIT èBIT (0 OR 1) èBYTE - 8 BITS èASCII

LOW LEVEL LANGUAGES

Machine Languagethe only language your computer understandseach instruction consists of ones and zeros

Assembly Languageuses letters and numbers to represent machine

language

Page 5: Computer Programming Languages HOW COMPUTERS WORK èCIRCUITS èBINARY DIGIT èBIT (0 OR 1) èBYTE - 8 BITS èASCII

HIGH LEVEL LANAGUAGES

EXAMPLES C / C++ PascalBASICJavaCOBOL

HTMLSchemeAdaFortranVisual BASIC

Page 6: Computer Programming Languages HOW COMPUTERS WORK èCIRCUITS èBINARY DIGIT èBIT (0 OR 1) èBYTE - 8 BITS èASCII

Which is Better? High or Low

High-Level -Requires less

Programming -Portable (Easier

to Move) -More easily Read

Low-Level -Better Use of

Hardware -Requires less

Memory -Runs more

Quickly

Page 7: Computer Programming Languages HOW COMPUTERS WORK èCIRCUITS èBINARY DIGIT èBIT (0 OR 1) èBYTE - 8 BITS èASCII

Translating High-Level to Machine Language

Interpreter Vs. Compiler

Page 8: Computer Programming Languages HOW COMPUTERS WORK èCIRCUITS èBINARY DIGIT èBIT (0 OR 1) èBYTE - 8 BITS èASCII

An Interpreter translates a computer language one instruction at a time. To run a program written in an interpreted language, you must first load the interpreter into the computers memory. Then you load the program to be interpreted.

A compiler makes the translation once, then saves the machine language so that the instructions do not have to be translated each time the program is run. Source code is translated using the compiler to object code then a linker produces executable code.

ASCII Codes Link

Page 9: Computer Programming Languages HOW COMPUTERS WORK èCIRCUITS èBINARY DIGIT èBIT (0 OR 1) èBYTE - 8 BITS èASCII