CS 61C (Fall 2007)

Quiz 17

Two questions, submit as "quiz17".  Due 2:45pm before lecture 10/8/2007.


1.

Is the operation of relocation applied to
  1. assembly language instructions input to the assembler?
  2. machine code output by the assembler?
  3. machine code in an executable file?
Indicate all that apply.

2.

When would a beq instruction (in the proper format, according to your answer to question 1 above) get relocated?
  1. always
  2. sometimes
  3. never
Briefly explain your answer.