Computer Language ppt

Download Report

Transcript Computer Language ppt

Computer
Programming
Languages
HOW COMPUTERS WORK
CIRCUITS
BINARY DIGIT
BIT (0 OR 1)
BYTE - 8 BITS
ASCII
PROGRAMMING
LANGUAGES
Low Level Vs High Level
LOW LEVEL LANGUAGES
 Machine Language
the only language your computer understands
each instruction consists of ones and zeros
Assembly Language
uses letters and numbers to represent machine
language
HIGH LEVEL LANAGUAGES
EXAMPLES
 C / C++
 Pascal
BASIC
Java
COBOL
HTML
Scheme
Ada
Fortran
Visual BASIC
Which is Better? High or Low
High-Level
Low-Level
-Requires less
Programming
-Portable (Easier
to Move)
-More easily
Read
-Better Use of
Hardware
-Requires less
Memory
-Runs more
Quickly
Translating High-Level to
Machine Language
Interpreter Vs. Compiler
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