Review: computer memory
-
Recall
that
the
computer memory
consists of a series of
electical switches and
each switch can
store/remember
one of the
value of 0 or
1:
- We have also
learned that:
- The
computer memory
contains
the computer program !
|
- Therefore:
a
computer program is
a bunch of
binary numbers !!
|
How people program a
computer around
1945
- Programmers would
set switches to
on/off to
write out the
computer instruction
in binary:
- Programming was a
very tedious
task !
|
How people program a
computer around
1950
- We invented
the
assembler programming language
which are
mnemonics for
each binary machine instruction:
- A (simple)
translation
program
can an
assembler translates
an assembler program
to binary machine code
|
How people program a
computer around
1957
- The first
programming language
(Fortran) was
invented:
- A complex
translation
program
can an
compiler translates
a Fortran program
to assembler code
|
Another way to run computer programs
(How Python
execute a program)
❮
❯