Paper 2 Flashcards
Each line of assembly code is equal to …… lines of machine code
One
Assembly language created to
Speed things up
Assembly language made
Opcodes easier to read because used a mnemonic and operand to form an instruction
Assemblers
What do they do
Translate assembly language to machine code
Assembly language
Negative
Time consuming
Hard to read debug and maintain
Grace Hopper
Idea
Her idea
Creating compiler to translate English code to machine code
Took 3 years to be taken seriously
What did people think computers could do
Who changed that
Computers could only do arithmetic
Grace Hopper
High level languages examples
Fortran
COBOL
High level languages
Properties
Easier to read
Easier to Maintain and debug code
High level languages can be translated using
Compiler or interpreter
Compiler
What will it do
Create a single executable file that can be run without original source code
(Translates high level languages)
Interpreter
What will it do
Translate high level languages
Run the source code one line at a time and doesn’t create executable file
Compiler Can do (document)
Create fully translated version of a document and use whenever need to
Takes time
Not need original document anymore
Easily share translated document
Interpreter
Can do
(Document)
Translate each line of document individually whilst you use it
Quick to do initially
Always need interpreter when wanting to use document
To share, others would need interpreter
High level language definition
Written in formal structured English
Easier for humans to read, maintain and debug
Low level language definition
Written in machine code or assembly language, quickly executed by a computer
Interpreter definition
Translates and executes a program one line at a time
Always required for code to execute