Giter Site home page Giter Site logo

yusuco / riscv-go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from riscvarchive/riscv-go

0.0 0.0 0.0 95.53 MB

License: BSD 3-Clause "New" or "Revised" License

Shell 0.19% JavaScript 0.01% C++ 0.01% Python 0.03% Perl 0.09% C 0.37% Fortran 0.01% Go 90.22% Assembly 4.15% Awk 0.01% Makefile 0.01% HTML 4.91% Batchfile 0.02%

riscv-go's Introduction

The Go Programming Language

RISC-V Go Port

This repository is home of the RISC-V port of the Go programming language.

The upstream Go project can be found at https://github.com/golang/go.

This port has been upstreamed in Go 1.14. Please refer to upstream for all RISC-V development. This repository is outdated and archived.

Quick Start

Setup:

$ git clone https://review.gerrithub.io/riscv/riscv-go riscv-go
$ cd riscv-go
$ git checkout riscvdev  # RISC-V work happens on this branch
$ export GOROOT_BOOTSTRAP=/path/to/prebuilt/go/tree
$ export PATH="$(pwd)/misc/riscv:$(pwd)/bin:$PATH"
$ cd src
$ ./make.bash

Compile and run in qemu-riscv64 (which is expected to be in PATH):

$ GOARCH=riscv GOOS=linux go run ../riscvtest/add.go

Build:

$ GOARCH=riscv GOOS=linux go build ../riscvtest/add.go

Test:

Our basic tests are in the riscvtest directory:

$ cd ../riscvtest
$ go run run.go

If this exits without error, all is well!

QEMU

Spike plus pk support only a small subset of Linux syscalls and will not be capable of supporting the full Go runtime.

The RISC-V QEMU port supports a much wider set of syscalls with its "User Mode Simulation". See Method 2 in the QEMU README for instructions.

Contributing

All contributors must sign the upstream Contributor License Agreement, as this port will be merged into upstream Go upon completion.

Code review occurs via our GerritHub project, rather than via GitHub Pull Requests.

The upstream contribution guidelines include a basic overview of using Gerrit. While the upstream Go Gerrit server is different from ours, codereview.cfg will configure git-codereview to send CLs to GerritHub.

riscv-go's People

Contributors

rsc avatar robpike avatar griesemer avatar bradfitz avatar ianlancetaylor avatar adg avatar minux avatar dvyukov avatar aclements avatar randall77 avatar josharian avatar cixtor avatar alexbrainman avatar ken avatar agl avatar davecheney avatar mdempsky avatar nigeltao avatar crawshaw avatar dsymonds avatar remyoudompheng avatar mwhudson avatar 0intro avatar cherrymui avatar ality avatar niemeyer avatar mundaym avatar mpvl avatar prattmic avatar dsnet 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.