Sunday 19 January 2014

Translator(compiler) vs interpreter

Interpreter
- Does what the program says to do

Compilers
- Convert from high-level, human readable language into a lower-level language (sometimes as low as native machine code)

CPU
- the fundamental operation of a CPU is to execute a sequence of stored instructions called a program. The program are kept in some kind of computer memory.
- CPU hanya mengerti bahasa biner (bahasa mesin). Jadi program perlu dikonversi ke bahasa mesin. Siapa yang mengkonversikan program itu ke bahasa biner?
- four steps: fetch, decode, execute, and writeback
: fetch: take the program from memory

No comments:

Post a Comment