Save
PAPER 2 COMPUTING
translators
Save
Share
Learn
Content
Leaderboard
Learn
Created by
Janice Aryee
Visit profile
Cards (13)
what are examples of high level
language
?
Python
,
Java
,
C++
what are the advantages of high level language?
hardware
independent
easier
for programmers to use
designed
for a specific use
hides away processor operations
what happens in a machine code?
typical
instructions
holds an
operation
code
in the
first few bits
and an
oper
and in the
rest
of the
bits
modern comouters
use
32
or
64
bits for each instruction
what
does
an assembler do?
converts
assembly language
to machine
language
advantages of low level
instructions
can be
executed
directly by the
CPU
very
fast
to execute
can directly
access
and modify data in the
register
advantages of high level
easy to
read
,
write
and modify the code
allows the programmer to focus on the
functionality
rather than how the
computer
works
can be run on
different hardware
disadvantages of low level
hardware
dependent works only on
specific
processors
more
difficult
to understand the
code
disadvantages of high level
each language has its own specific
syntax
and
keywords
codes need to be
translated
slower to
execute
interpreter
runs slowly
starts right away
lets you see results
translates one line of high level code and immediately executes it
compiler
extra
preparation
time
but the program runs very
quickly
translates every line of a high level program to machine code to produce an executable file
when is a compiler used?
Creates a
.exe
file
The
source
code is not
shared
The program code cannot be
modified
Used for
commercial
,
licensed
software
when is an interpreter used?
-Used to
develop
programs or learn a programming
language
(easy to
spot
errors)
when is an assembler used?
Used to produce an
executable
file for an
assembly language
code