paper 2 section 10 Flashcards
Translators
Convert high-level code into machine code to enable code to be run
draw an or gate
DRAW NOW
DRAW NOT GATE
DRAW
Interpreter - Disadvantages
Source code is needed for it to execute
For code to be transported to another machine, it needs to have an interpreter installed
Interpreter - Advantages
Translates one line at a time - easier to debug
Can be developed in stages, no long compilation time
Interpreter
Translates source code 1 line at a time
Integrated Development Environment - Translator
Can used compiler or interpreter to convert high-level code into machine code so it can be run
Integrated Development Environment - Run-time Environment
Emulates CPU within IDE
Enables program to be run without compiling every time
Checks for run-time errors and other testing can be carried out
Integrated Development Environment - Error Diagnostics
Highlights syntax errors in code as you type or after translation
Integrated Development Environment - Editor
Allows programmers to write/edit code
Syntax completion functions offer to complete code/suggest commands
Keywords can be colour coded
Integrated Development Environment
software
Software used to enter and edit source code
Several tools included that are useful to programmers
High-level Language
Has a syntax that resembles English language
Understandable by humans
Has to be translated into machine code before it can run
Compiler - Disadvantages
Reports bugs at the end, which may be less efficient for developers
Initial compilation can be slow
Compiler - Advantages
Doesn’t need to be translated every time code is run
Runs quicker once compiled
Compiler
Translates program all at once
Reports errors at the end
Produces .exe file of object code