riscv-go

  • 所有者: riscvarchive/riscv-go
  • 平台:
  • 許可證: BSD 3-Clause "New" or "Revised" License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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.

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.

主要指標

概覽
名稱與所有者riscvarchive/riscv-go
主編程語言Go
編程語言Shell (語言數: 13)
平台
許可證BSD 3-Clause "New" or "Revised" License
所有者活动
創建於2015-12-02 01:14:10
推送於2020-01-23 20:42:43
最后一次提交2017-02-03 20:54:52
發布數0
用户参与
星數154
關注者數22
派生數26
提交數31.5k
已啟用問題?
問題數21
打開的問題數0
拉請求數1
打開的拉請求數0
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?