Coder Social home page Coder Social logo

Support for RV32IM about tinygo HOT 6 OPEN

puma314 avatar puma314 commented on September 22, 2024 1
Support for RV32IM

from tinygo.

Comments (6)

aykevl avatar aykevl commented on September 22, 2024

What is the board/chip you want to target? TinyGo needs a lot more than just the instruction set architecture.

from tinygo.

puma314 avatar puma314 commented on September 22, 2024

It's is a bit of an unusual use-case--our team is building a zero-knowledge VM (zkVM) that proves the execution of the RISC-V32im instruction set: https://github.com/succinctlabs/sp1.

We use ecalls to do stdin and stdout into the zkVM environment, but other than that usually we just have pure golang code that is proving some sort of computation.

from tinygo.

aykevl avatar aykevl commented on September 22, 2024

In that case, the zkVM would be the target. Especially since you say this:

We use ecalls to do stdin and stdout into the zkVM environment, [...]

This means that functions like putchar would call those kinds of syscalls. The runtime needs to know about these sorts of details, for example to print panic messages or to correctly schedule goroutines.

Also, the linker will need to know details like at which address it can be linked and which memory area it can use for the heap.

from tinygo.

jharveyb avatar jharveyb commented on September 22, 2024

Relevant PR from another zkVM project:

risc0#1

Relevant discussion:

risc0/risc0#1222

from tinygo.

tac0turtle avatar tac0turtle commented on September 22, 2024

hey wanted to check in on how things are going here?

from tinygo.

aykevl avatar aykevl commented on September 22, 2024

A PR like risc0#1 would indeed be something that could be included in TinyGo.

from tinygo.

Related Issues (20)

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.