Saturday, June 6, 2009

Machine Structures2: Assembler and the Activation Record


An Assembler is a program which does the following

· Converts the mnemonics [mov] to opcodes [21]

· Does Macro expansion

· Does Constant Expression Evaluation &

· Maintains a Symbol Memory Table having the info on the symbols used and there values, as shown below









Note:

Variable declarations will be in big memory and the value is loaded into register using load operation and similarly with the store to put the value back from register to big memory.





















No comments:

Post a Comment