What is Source code?
why was there an explosion in the use of High-level Languages?
What is assembly language reserved for?
Two factors led to an explosion in the use of high-level languages:
What is Machine code?
Machine code is the Binary Representation of instructions in a format that the CPU can decode and execute.
Have an operation code instruction and address or data to use.
What are low-level Languages?
What is it used for?
• Written in Assembly language.
• Translated by an assembler into machine code.
• Used for embedded systems and device drivers where instructing the hardware directly is necessary.
• One instruction translated into one machine code instruction.
• The code works on one type of processor only.
• The programmer works with memory directly.
• harder to write and understand.
• Memory efficient.
• fast to execute.
What are High-level Languages?
What is the Purpose of Translators?
Code written in both assembly and high-level source code is converted into binary machine code for execution.
Assembly code is translated using a assembler.
There are two methods of translating high-level code:
What is a Compiler?
Translates source code from high-level languages into object code and then into machine code ready to be processed by the CPU
The whole program is translated in one go into machine code before it is run.
High level → Object code → Machine code
What are the Pros of a complier
What are the cons of a compiler
What is a Interpreter?
Translates source code from high-level languages into machine code ready to be processed by the CPU.
The program is translated line by line as the program is running.
Pros of an interpreter
Cons of an interpreter:
What is an IDE
An IDE is a set of tools which aid you in writing, debugging and testing computer programs
REMEMBER DURT
What are Debugging Tools in an IDE
Debugging Tools are for finding logic errors.
How do IDE’s help identifying Syntax Errors?
Illustrating keyword syntax and auto-completing command entry
Error Highlighting and the complier produces an output of the error message to identify it.
What is a run-time enviroment?
What are Usability functions?
What is a editor?
These tools help to improve the readability of code. However, they do not usually help to identify errors.
What is a Translator?
Some IDEs have an inbuilt translator to test the program and make small alterations before compiling the final program into an
executable file for distribution
Why do High-level and Assembly language need to be translated?
What is an IDE and their features?