Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bronzebeard

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bronzebeard

Minimal ecosystem for bare-metal RISC-V development

  • 0.2.2
  • PyPI
  • Socket score

Maintainers
1

Bronzebeard

Bronzebeard is a simple, standalone assembler for developing bare metal RISC-V <https://en.wikipedia.org/wiki/Riscv>_ programs. It is designed for applications that stand on their own without relying on operating systems <https://en.wikipedia.org/wiki/Operating_system>_, frameworks, SDKs, or pre-existing software of any kind. This assembler supports the base 32-bit instruction set as well as the M, A, and C extensions (RV32IMAC).

Bronzebeard and its tools are implemented purely in Python. It has been written in order to be free from large, complex toolchains. This keeps the project portable, minimal, and easy to understand.

Motivation

Much of modern software has accrued vast amounts of bulk and complexity throughout the years. Can useful software be developed without relying on any of it? That's the question that this project seeks to answer. I believe that the rise of RISC-V provides a great opportunity to explore different methods of program development. Installing a full operating system doesn't have to be a prerequisite to building something useful.

Check out the DerzForth <https://github.com/theandrew168/derzforth>_ project for further elaboration of this idea.

Installation

If you are unfamiliar with virtual environments <https://docs.python.org/3/library/venv.html>, I suggest taking a brief moment to learn about them and set one up. The Python docs provide a great tutorial <https://docs.python.org/3/tutorial/venv.html> for getting started with virtual environments and packages.

Bronzebeard can be installed via pip::

pip install bronzebeard

Or, if you'd rather clone this repo and play with the examples::

git clone https://github.com/theandrew168/bronzebeard.git cd bronzebeard/

I'd still create and activate a virtual environment here

pip install -e .

Assemble!

First, create a text file with some RISC-V assembly source code in it::

add x1, x2, x3 add x4, x5, x6

Then, with Bronzebeard installed::

bronzebeard my_asm_file.asm

By default, the assembled output binary will be placed in a file named :code:bb.out.

Testing

Bronzebeard's tests are written using pytest <https://docs.pytest.org/en/6.2.x/>_::

pip install pytest

Once installed, the tests can be run via::

pytest

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc