Skip to content
simulates the functionality of a two pass linker
Find file
Latest commit 12c368b @thebyrd closes 1
Failed to load latest commit information.
inputs organized project
lib closes 1
.gitignore added npm support formatted readme
app.js all tests passing
package.json all tests passing

David Byrd

Lab #1 Linker (Node.js version) Operating Systems | NYU 2.17.13

  1. Compilation command

    This requires node.js & npm to be installed and will not work on i5.

    $ npm install linker -g         // downloads linker & adds to path
    $ which linker                  // just to check that its in your path
  2. Running Program

    Run the following command from anywhere on your computer:

    $ linker path/to/file.txt
  3. Directory Structure


    • contains all of the example inputs


    • contains the reader that turns input files into an AST
    • has the linker code which includes methods to create the symbol table and memory map given the AST


    • This is the executable that is added to your path when installed
  4. Description

    The executable passes the file name to the reader which parses it and returns an abstract syntax tree.

    The AST is then passed to linker#getSymbolTable which returns the Symbol Table. The Symbol Table is then printed.

    linker#getMemoryMap takes the original ast and the symbol table as arguments and then returns the memory map. The Memory Map is then printed. This method also handles errors that are found in the AST and prints out Error and Warning statements.

  5. Dependencies

    Node.js >= 4.4 NPM >= 1.1x A unix based operating system

Something went wrong with that request. Please try again.