Compiler Phases, Linking & Loading



Answer & solution
Answer: Pass1 for defining addresses; pass2 for substituting them into uses (no official key was published)
Pass1 advances the location counter and associates each defined label with its address, thereby resolving the address values stored in the symbol table. Pass2 looks up those values when encoding references, especially forward references. Hence the standard matching answer is pass1 when “address resolution” means establishing the local symbol’s address. If it instead means replacing a symbolic operand at a use site with that address, the operation is pass2. The two meanings are explicitly distinguished because the printed wording does not name the phase’s exact suboperation.