Project information

  • Category: Assembly & C
  • Class: Computer Organization
  • Project date: Fall 2023
  • Project URL: Click Here

Project Details

The Linker project involves developing a linker for combining assembly object files into a unified executable. The linker takes 1 to 6 object files, concatenates their text and data segments, placing text before data, and adjusts symbolic addresses in the relocation table. The execution starts from the main file provided first. The special global label "Stack" manages the stack, automatically resolved beyond segments. Error checking includes detecting duplicate global labels, undefined labels, and object files defining the stack label. Handling local labels during linking involves storing file data and adjusting addresses. The program runs through a command-line interface, linking 2 to 6 object files to generate a machine code file.