Quiz time
Now that you have completed reading this chapter, try answering the following questions to test your knowledge:
- What are the main three steps involved in the resolution of addresses in the lowering to binary files?
The three main steps are the insertion of fixup, the relaxation of the constraints of the instructions, and the recording of the relocations.
More details are in the Overview of the lowering of a textual assembly file section.
- What are the three main target-specific components involved in the assembling of an object file?
The three main target-specific components are the MCAsmBackend
, MCCodeEmitter
, and MCObjectTargetWriter
classes. See the Assembling with the LLVM infrastructure section for more details.
- What are the responsibilities of the
MCAsmBackend
class?
The MCAsmBackend
class is responsible for handling the fixups, the relaxation process, and providing the MCObjectTargetWriter
class. Refer...