Comp229-Midterm-S2008-solutions

Comp229-Midterm-S2008-solutions - Concordia University...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Concordia University Department of computer science Midterm test - solution Professor : Kerly Titus Course : System software (COMP229/1-CC) Date : Thursday, July 24 2008 Time : 18 :30 – 19:45 Special instructions : - Answer all questions on the booklet - Answer using simple but concise phrases - No documentation allowed Question 1. Assemblers [19 marks] a) A disassembler is a system software that converts an object (or executable) program into a source program. Explain the difficulties that would occur when a source program is reconstructed into its original form (i.e. with symbolic labels, symbolic opcodes, and symbolic operand references) using a disassembler. In other words, explain whether or not it would be possible to reconstruct the original labels, opcodes, and operand references. If possible explain how and if not possible give a solution. [7] Yes, i t would be possible to reconstruct an object program into a source program using a disassembler. The opcode table could be used to extract information about the opcodes and their addressing mode. However, the symbolic labels and the symbolic operand references could not be reconstructed because the object program does not hold any of the symbol table information. Nevertheless, it would still be possible to build a symbol table and to assign new names to the numeric addresses. b)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Comp229-Midterm-S2008-solutions - Concordia University...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online