comp229-exercises-solution-3

comp229-exercises-solution-3 - System software Review...

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

View Full Document Right Arrow Icon
System software Lesson 3 – Loaders and linkers comp229 Department of computer science Page 1 of 3 Winter 2004 Review exercises - solution 3.1 Show the external symbol table that is generated when the programs PROGA and PROGB are linked together. Assume the load address is 5000 h . 0000 PROGA START 0 EXTDEF X1 EXTREF Y2 0015 LDA X1 0018 ADD Y2 0021 STA Z1 0060 X1 RESW 1 0063 Z1 RESW 1 E N D 0000 PROGB START 0 EXTDEF Y2 EXTREF X1 0015 LDA X1 0018 ADD Y2 0021 STA Z2 0060 Y2 RESW 1 0063 Z2 RESW 1 E N D Control section Symbol name Address Length PROGA 5000 0066 PROGA X1 5060 PROGB 5066 0066 PROGB Y2 50C6 3.2 Explain what addresses in the code of example 3.1 would require the assembler to generate a modification record. In both PROGA and PROGB, addresses 0016, 0019, and 0022 require a modification
Background image of page 1

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

View Full DocumentRight Arrow Icon
System software Lesson 3 – Loaders and linkers comp229 Department of computer science Page 2 of 3 Winter 2004 The SIC/XE machine has variable instruction formats that may cause a misalignment of the operand fields in a text record. The reason is that each relocation bit applies to
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/25/2010 for the course COMP COMP229 So taught by Professor Guy during the Spring '10 term at Concordia Canada.

Page1 / 3

comp229-exercises-solution-3 - System software Review...

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

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