Paper 2 Translators and Facilities of Languages Flashcards
What does the term ‘high level language’ (HLL) mean?
High-level languages allow programmers to write instructions in a language (such as Python) that is easier to understand than low-level languages.
What is a translator?
A translator is a program that converts source code (HLL) into machine code. Generally, there are three types of translator:
compilers
interpreters
assembler
List some of the various features of a typical IDE.
An IDE typically contains a code editor, a compiler or interpreter, and a debugger, accessed through a single graphical user interface (GUI).
What is an Interpreter ?
An interpreter translates code into machine code, instruction by instruction - the CPU executes each instruction before the interpreter moves on to translate the next instruction. Interpreted code will show an error as soon as it hits a problem, so it is easier to debug than compiled code.
What is a Compiler?
A compiler translates the whole program into machine code before the program is run. It can be difficult to test individual lines of compiled code compared to interpreted languages as all bugs are reported after the program has been compiled.
What is an Assembler?
An assembler translates assembly language into machine code. Assembly language is a low-level language written in mnemonics that closely reflects the operations of the CPU.