4.2 Software TYPES OF PROGRAMMING LANGUAGE, TRANSLATORS AND INTEGRATED DEVELOPMENT ENVIRONMENTS (IDES) Flashcards
Define machine code
The list of instructions that a CPU can process, written in binary.
Name the two types of programming languages (2)
High level lanugages
low level languages
Advantages of high level languages (5)
easier to read, write and understand programs
No knowledge of underlying hardware required
quicker to write programs
programs are easier and quicker to debug
easier to maintain programs in use
disadvantages of high level languages (3)
programs can be larger
programs can take longer to execute
programs may not be able to make use of special hardware
Advantages of low level languages (4)
can make use of special hardware
includes special machine dependent instructions
can write code that doesn’t take up much space in the primary memory
can write code that performs tasks very quickly
Disadvantages of low level languages (2)
programs more difficult to understand
takes longer time to write and debug programs
Name one type of low level language (1)
assembly language
Feature of assembly language
uses short abbreviations known as mnemonics
Which type of translator translates assembly language into machine code
assembler
Define assembler
A type of translator that translates assembly language into machine code.
What are the 3 types of translators
interpreters
compilers
assemblers
Define translator
Software that translates code into machine code to be executed by the CPU.
Features of interpreters (3)
translates and executes the code
line-by-line
stops execution when an error is
found
Since an interpreter translates code each time a program is run, the interpreter software is required every time you run the program.
Features of compilers ()
translates the whole code at once before executing it, producing an executable file
A compiler provides an error report for the whole
code if errors are detected (unable to run program until error is fixed)
Once a program has been compiled the compiler software is no longer required to run the program, as an executable file has been produced.
Which programming languages does the compiler and intrepreter translate
high level lanugages