programming languages and IDEs Flashcards
1
Q
Machine code
A
- have an opcode instruction and
address or data to use - binary representation of instructions
in a format the CPU can decode and
execute
2
Q
Low level language
A
- written in assembly code
- translated by an assembler into
machine code - used for embedded systems
- used for device drivers
- works on one type of processor only
- programmer works with memory
directly - harder to write and understand
- memory efficient
- code is fast to execute
3
Q
High level languages
A
- source code written in languages
- translated by complier or interpreter
into machine code - quicker and easier to write and
understand - work on many type of processors
- one code instruction translate to many
macine code instructions
-lots of data structures to use - less memory efficient
- code can be slower to execute if not
optimised
4
Q
complier
A
translates source code from high- level languages into object code and then into machine code
- whole program is translated in
machine code before its run
5
Q
Advantages of complier
A
- execution is faster
- code is optimised
- original source code is a secret
6
Q
Disadvantages of complier
A
- difficult to write code as the program
will not run with syntax error - code needs to be recompiled when
code changes - design for specific type of processor
7
Q
Interpretor
A
Translates source code from high level languages into machine code
- program is translated line by as program is running
8
Q
Advantages of inerpreters
A
- easy to write code as program will always run until it find a syntax error
- doesnt have to be recompiled when code changes
- easier for beginners to learn coding
9
Q
Disadvantages of interpretors
A
- execution is slower
- code is not optimised
- source code is needed
10
Q
A