4.3 Flashcards
what is the language computers use?
machine code
two types of computer programs
high level, low level
what is a computer program?
list of instructions that enable a computer to perform a certain task
3 things about high level language
- requires no knowledge of the hardware and computer that will use the program
- portable and can be used on different types of computers
- easier to understand
- quicker to write
3 things about low level languages
- can use special hardware
- writes codes that are more efficient
- includes machine-dependent instructions
disadvantages of low level
- takes long to de-bug programs
- difficult to understand and write
disadvantages of high level
- programs take up more space
- not able to use special hardware
assembly language = ?
low level
complier
- translates high level –> machine code
- one high level instruction –> several machine codes
- programs run without the complier
- usually distributed for general use
- executable file of machine code produced
interpreter
- executes high level program one statement at a time
- no executable file of machine code produced
- program cannot run without the interpreter
- used when a program is being developed
assembler
- low level –> machine code
- executable file of machine code produced
- one low-level statement is made into one machine code instruction
- assembled programs used without the assembler
- distributed for general use
advantages and disadvantages of interpreter
advantage:
easier to de-bug and test during development
disadvantage:
program can’t be run without interpreter, takes longer to execute
advantages and disadvantages of complier
advantage:
can be executed without the complier, takes up less space
disadvantage:
takes longer to write
IDE is?
Integrated Development Environment
IDE features?
code editors, translator, auto-correction, auto-completion