translators section 6 Flashcards
(9 cards)
high level language
source code is easy for humans to write but computers need to translate it into machine code
low level language
are tricky for humans to read and write but are easier for computers to run
features of low level
1) one instruction of code represent one instruction of machine code
2) difficult read, understand and modify
3) no need for a translator
4) control what the cpu does so programs will be more efficient and faster
5) written for one type of machine
features of high level
1) one instruction represents many instructions of code
2) written for many different machines
3) easy to read, understand and modify
4) no control over cpu so programs will be less efficient and slow
5) must be translated
types of translators
assemblers, compilers, interpreters
what assemblers do
turn assembly language into machine code
what compilers and interpreters do
turn high level language into machine code
compilers features
1) translates all code at the same time
2) only needed once
3) returns the errors for the entire program once complete
4) runs quickly but compiling takes longer
interpreter features
1) translates one instruction at a time
2) needed every time you run the program
3) return the first error it finds and then stops
4) runs slowely