EoY (chapter 4: High & Low Level Languages, Compilers & Interpreters) Flashcards
Programming languages?
- there is high level and low level
- computer’s language = machine code
- most programmers write in high level
high level advantages (4 points):
- works on different machines (independent of the platform being used)
- easier to correct errors
- easier to read, write, and understand
- quicker to write programs
high level disadvantages (3 points):
- programs can be larger
- programs can take longer to execute
- it may not be able to use special hardware
low level advantages (5 points):
- can use special hardware
- doesn’t take up much space (uses less memory)
- can use machine-specific instructions
- works directly on the CPU
- executes instructions faster
low level disadvantages (2 points):
- takes longer to write programs
- programs are more difficult to understand
complier? (5 points)
- translates high-level into machine code (AT ONCE)
- an exe file is produced
- one high-level language statement can be translated into several machine code instructions
- usually distributed for general use
- complied programs can be run without the complier
interpreters? (4 points)
- translates high-level but ONE LINE AT A TIME
- no executable file of machine code produced
- interpreted programs can’t be run without the interpreter
- is often used when a program is being developed
advantages + disadvantages of interpreters
advantages:
1. easy + quick to debug and test during development
2. easier to edit programs during development
disadvantages:
1. programs can’t be run without the interpreter
2. programs take longer to execute
advantages + disadvantages of compliers
advantages:
1. a complied program can be stored
2. it can be executed without the complier
3. takes up less space in memory
4. executed in a shorter time
disadvantages:
1. takes a long time to test, write, and debug during development
assemblers?
- translates low-level language to machine code
- only option for low-level language programs
- executable file produced
- assembled programs can be used without the assembler
- usually distributed for general use