Skip to content

Python wrapper for RISC-V disassembler

License

Notifications You must be signed in to change notification settings

cnoic/PyRISCV-Disas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyRISCV-Disas

A python wrapper for RISC-V disassembler. POWERED BY TeCSAR

Prerequisites

First make sure you have already installed pip3, and git tools:

sudo apt install git python3-pip

Installation

At first, you need to clone the repository and install the package:

git clone https://github.com/mbaharan/PyRISCV-Disas.git
cd PyRISCV-Disas
sudo python3 setup.py install

To generate the python bindings (from the PyRISCV-Disas directory)

swig4.0 -python -py3 -relativeimport -outdir ./src/pyriscv_disas/ ./c_core/riscv-disas.i

Demo

Change the path to the demo directory and run the test.py:

cd demo
python3 test.py

Author

License

Copyright (c) 2018, University of North Carolina at Charlotte. All rights reserved. - see the LICENSE file for details.

Acknowledgments

The C core of this project is available here.

About

Python wrapper for RISC-V disassembler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 86.3%
  • Python 12.0%
  • SWIG 1.7%