GithubHelp home page GithubHelp logo

brandtdamman / i281-software Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 43 KB

Repository for a machine code compiler (and soon to be disassembler) for the i281 microprocessor.

License: Other

Python 100.00%

i281-software's Introduction

i281 Compiler

Overview

The i281 microprocessor was developed by Alexander Stoytchev and Kyung-Tae Kim for the CPR E 281 class at Iowa State University. To program the microprocessor, a compiler (or rather a simple parser) was necessary for continued use. A compiler made by the developers of i281 was written in Java and sucessfully completed the job; however, there was room for improvement.

Developed as a means to complete the Final Project portion of CPR E 281, this repository holds the source code and other related information pertaining to a redeveloped Python i281 compiler.

The project was written in Python 3.7.3. This version of Python (or above) is required to run the compiler.

Setting up

To install/compile the compiler source, use PyInstaller. For development builds, it is advised to use the traditional one-folder compilation. As for stable builds, use the one-file compilation:

  • One Folder: pyinstaller [i281 source]
  • One File: pyinstaller --onefile --windowed [i281 source]

If 'PyInstaller' is not installed on your machine, you can directly run the compiler by executing the program via Python (i.e. python3 i281compiler.py [args]). Additional information about PyInstaller can be found at PyInstaller Documentation.

Running

Please refer to the man-page for details.

To open the man-page, run man ./i281compiler.1 on your preferred operating system (MacOS or Linux).

Problems

If there are any issues with the compiler, double-check your command line arguments and source code. If problems still persist please contact the developer(s) with a description of the problem with screenshots and source code (to be compiled).

License

The license and its details are listed in the LICENSE file, which is included in this repository.

i281-software's People

Contributors

brandtdamman avatar

Stargazers

 avatar

Watchers

 avatar

i281-software's Issues

Duplicate Jump Labels

If there are two or more jump labels with the same declaration (case-sensitive), then the compiler takes the first found label and redirects all branch statements to said label (which may be undesired).

An exception should be thrown if a jump label is found but has already been collected into the _branch_destinations dictionary.

OSPath: Tilde does not work

When providing a file to input, the tilde (~) does not appear to be properly recognized via os.path.exists(path) for whatever reason. Perhaps a different os function needs to be used?

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.