GithubHelp home page GithubHelp logo

martinmaas / riscv-gnu-toolchain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from riscv-collab/riscv-gnu-toolchain

0.0 1.0 0.0 2.13 MB

GNU toolchain for RISC-V, including GCC 4.9.2

C 96.64% Shell 0.07% EmberScript 0.05% C++ 2.15% Assembly 1.01% Makefile 0.07% Objective-C 0.01%

riscv-gnu-toolchain's Introduction

RISC-V GNU Compiler Toolchain

This is the RISC-V C and C++ cross-compiler. It supports two build modes: a generic ELF/Newlib toolchain and a more sophisticated Linux-ELF/glibc toolchain.

Author

Andrew Waterman

Contributors

  • Yunsup Lee
  • Quan Nguyen
  • Albert Ou
  • Darius Rad
  • Matt Thomas
  • ultraembedded (github id)

Prerequisites

Several standard packages are needed to build the toolchain. On Ubuntu, executing the following command should suffice:

$ sudo apt-get install autoconf automake autotools-dev libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo patchutils

On Mac OS, the source and build directories must live in a case-sensitive file system. The simplest approach is to create and mount a new disk image with that property. Make sure that the mount point does not contain spaces.

Installation (Newlib)

To build the Newlib cross-compiler, pick an install path. If you choose, say, /opt/riscv, then add /opt/riscv/bin to your PATH now. Then, simply run the following command:

./configure --prefix=/opt/riscv
make

You should now be able to use riscv-gcc and its cousins.

Installation (Linux)

To build the Linux cross-compiler, pick an install path. If you choose, say, /opt/riscv, then add /opt/riscv/bin to your PATH now. Then, simply run the following command:

./configure --prefix=/opt/riscv
make linux

riscv-gnu-toolchain's People

Contributors

aswaterman avatar a0u avatar darius-bluespec avatar colinschmidt avatar martinmaas avatar palmer-dabbelt avatar yunsup avatar

Watchers

 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.