2.5 - Programming Languages and Integrated Development Environments Flashcards
What is a low level language used for?
Embedded systems and device drivers where directly instructing the hardware is needed.
Key features of low level languages?
Written in assembly language or machine code; one instruction of it usually represents 1 instruction of machine code.
Why might programmers use a low-level language over a high-level language?
Don’t always need translator; you control what the CPU does and how it uses memory so programs will be more memory efficient and faster.
Why might programmers use high-level languages over a low-level language?
Easier to learn, understand, modify; data can easily be store in lots of different structures without knowing about the internal structure of the CPU.
Why are translators important?
Computers only understand machine code, so high-level languages must be translated to machine code, before computers can execute the instructions/
What are the two types of translators?
Interpreters and Compilers
What are the differences between a translator and an interpreter?
Compiler translates all of the source code at the same time and creates one executable file; interpreters does it one instruction at a time and doesn’t create an executable file.
What are the differences between a translator and an interpreter?
Compiler translates all of the source code at the same time and creates one executable file; interpreters does it one instruction at a time and doesn’t create an executable file.
What are the differences between a translator and an interpreter?
Compiler translates all of the source code at the same time and creates one executable file; interpreters does it one instruction at a time and doesn’t create an executable file.
What is the advantage of using an interpreter over a compiler?
Customers can see the source code so can adapt it and see how it works.
What are the advantages of using a compiler over an interpreter?
Executes faster (already in machine code, with interpreters each instruction has to be translated before execution); no need for compiler to be present when object code is run, interpreter must be installed to run program.
What are the key features provided by an IDE?
Line Numbers, Breakpoints, Code Folding, Variable Watching, Syntax Highlighting, Error Diagnostics, Run-time Environment,