GithubHelp home page GithubHelp logo

asm's Introduction

The Design and Implementation of An Assembler and Linker for Teaching and Experiments.

The repository is the official implementation of The Design and Implementation of An Assembler and Linker for Teaching and Experiments. The paper presents the design and implementation of an assembler and linker on the x86 Linux platform for teaching experiments in computer architecture and program design. The assembler uses AT&T syntax and the linker can perform static linking of several target files. The assembler supports 158 different instructions, or a total of 398 different instructions if taking the differences of operand format into account.

Requirements

Install Rust:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Usage

  1. Build the assembler and linker:
    cargo build
  2. Then add ./target/debug/assembler and ./target/debug/linker to PATH.
  3. The input parameters to the assembler take the following format:
    assembler -o <output-file> <input-file>
  4. The input parameters to the linker take the following format:
    linker -o <output-file> <input-file1> <input-file2> ...

Results

Correctness of instruction generation, and correctness of the executable file are verified.

eval

Our generated executable files have similar execution times to those generated by GCC as/ld.

cmp

References

If you find this repository helpful in your research, please consider citing:

@INPROCEEDINGS{10484260,
  author={Cao, Yifan and Xu, Wei},
  booktitle={2023 International Conference on Algorithms, Computing and Data Processing (ACDP)}, 
  title={Design and Implementation of An Assembler and Linker for Teaching and Experiments}, 
  year={2023},
  volume={},
  number={},
  pages={74-79},
  keywords={Ground penetrating radar;Source coding;Linux;Heuristic algorithms;Education;Geophysical measurement techniques;Computer architecture;assembler;linker;teaching experiment;Rust;ELF;x86},
  doi={10.1109/ACDP59959.2023.00019}}

asm's People

Contributors

caoyfcode avatar

Stargazers

 avatar tbq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.