Principles Of Programming Flashcards
Compiler
They take the whole source code and translate it into machine code all in one go. Once converted, the object code can be run unassisted at any time.
Interpreter
An interpreter translates source code into machine code one instruction at a time (one line at a time). The resulting machine code is then executed immediately.
Assembler
Assemblers are a third type of translator. The purpose of an assembler is to translate assembly language into machine code.
Assemblers create one machine code instruction for each assembly instruction.
What is a high-level language?
A programming language that allows code to be written. It’s very similar to natural human language (like English). It also provides the utility of powerful commands that can perform complex tasks.
Give examples of High-level languages.
Basic Java Pascal COBOL C# C++ Python VB
What are Low-level languages?
Uses mnemonics and requires knowledge of the internal structure of the CPU (it’s very specialised).
What is machine code?
Binary
What are the uses of High-level language?
It is used when speed is not the most critical factor, and often used in productivity applications, like spreadsheets or word processors. Modern applications are developed using high-level programming languages.
What are the uses of Low-level language?
Some people may program directly into machine or assembly code, mainly used for programming device drivers or embedded systems, where fast execution speeds are critical. For game developers who use console specific development software, they include low-level features for optimum performance.
Give an example of Low-level language.
Assembly language