2.5 Flashcards
High level
Python
Closer to English so easier to code and debug and understand
One to many relationship with machine code
Not processor specific so the same code works for many machines
Needs to be translated to machine code to be executed so slower to execute and less efficient
Low level
Machine code (binary)
Understood and executed by processor
Specific to processor - only written for one machine and can’t work on others
Assembly code (ADD, SUB) - easier to code than machine code
One to one relationship with machine code
Difficult to code and understand
Used for device drivers and embedded systems
Efficient and fast to execute as in control of the CPU
What language does the computer only understand
Machine code
Compiler
High level code directly translated to machine code to create an executable file
Interpreter
Translates and runs 1 instruction at a time, need every time to run the program, returns first error then stops (good for debugging)
Program runs slow as translating at the same time
What is an IDE
Integrated development environment - software used to help developers create code
Compiler
Translates all at the same time into one executable file, returns a list of errors once compiling is complete
It takes a long time but after its very quick
Features of an IDE
Several helpful features
Code editor - where you write code
Error diagnostic and debugging tools
Colour coded code to identify types of code
Auto-complete/correction/indentation
Breakpoints to stop code at certain points
Translator - allows source code to be executed