Please enable JavaScript.
Coggle requires JavaScript to display documents.
Unit 2: (Assembly Code (Libraries (Pre-written functions, Examples could…
Unit 2:
Assembly Code
-
It is difficult for humans to read, write and debug machine code
-
Assembler
-
Each Processor has it's own instruction set and so the object code produced will be hardware specific
Complier
Complier translates a whole program written in a high level language into executable machine code, going through several stages
-
-
Interpreter
-
An interpreter does this translation line by line rather than translating the whole program before any of it can be executed
-
-
Bytecode
-
For example, Java is compiled into bytecode which is an intermediate step between source code and machine code
The bytecode is interpreted by a bytecode interpreter, for example the Java virtual machine
-
-
Linker
The Linker needs to be put the appropriate memory addresses in place so that the program can call and return a library function
Loader
-
-
However, memory addresses in the program will need to be relocated by the loader because some memory will already be in use
-
-
-