4.2 Types of programming languages, translators, IDEs Flashcards
What are the 2 types of programming languages
High-level languages
Low-level languages
What are High-level language
how is it executed
knowledge required to write HLL?
programming language that is independent of computer hardware, a program written in a HLL needs to be translated into machine code before it is executed.
No knowledge of hardware and instruction set of computers are required
Adv of HLL
- ease of reading and writing code
– ease of debugging code
– machine independence
Disadv of HLL
Programs are larger
Programs take longer to exec
Incapable of direct manipulation of hardware
What is LLL
Low-level languages - a programming language that is dependent on computer hardware
Adv of LLL
direct hardware manipulation
can write code that doesn’t take up much space
in primary memory
can write code that performs a task very quickly
Disadv of LLL
Takes longer to write and debug programs
Harder to understand
What is an assembly language
a form of low-level language that uses mnemonics
What is an assembler
a computer program that translates programming code written in assembly language into machine code
What is a translator
converts a program written in a high-level language program into machine code
What is a compiler
3 characteristics
a computer program that translates a source program written in a high-level language to machine code
An executable file of machine code is produced.
One HLL statement can be translated into several machine code instructions.
Compiled programs are run without the compiler
What is an interpreter
3 char
a computer program that analyses and executes a program written in a high-level language line by line
No executable file of machine code is produced
One HLL program statement may require several machine code instructions to be executed.
Interpreted programs cannot be run without the interpreter
Compiler vs interpreter vs assembler
what does it do?
Compiler - Translates a high-level language program into machine code
Interpreter - Executes a high-level language program one statement at a time.
Assembler - Translates a low level assembly language program into machine code.
Compiler vs interpreter vs assembler
Executable file of machine code?
Compiler - yes
interpreter - no
assembler - yes
Compiler vs interpreter vs assembler
How they are translated, what is required, etc
Compiler - One high-level language statement can be translated into several machine code instructions.
interpreter - One high-level language program statement may require several machine code instructions to be executed.
Assembler - One low-level language statement is usually translated into one machine code instruction.