Coder Social home page Coder Social logo

rm-hull / barebones-toolchain Goto Github PK

View Code? Open in Web Editor NEW
66.0 66.0 18.0 550.46 MB

Barebones [ i686-elf / ARMv7-eabi / MIPS ] cross-compiler & toolchain

Logos 0.15% XC 0.15% C 40.85% C++ 21.59% Objective-C 3.43% Shell 0.25% XS 0.14% Groff 33.44%

barebones-toolchain's Introduction

Hi there ๐Ÿ‘‹

Here's a small selection of personal projects I've got hosted in Github:

  • UK Ordnance Survey maps - A small frontend app written in Typescript using React, Chakra UI and Leaflet.js, deployed with Github Actions and hosted via Github Pages. maps-leisure

  • Zaup 2.0 - Another frontend app (also Typescript, React, Chakra) that displays imported TOTP codes. It is another "serverless" app - all the data is persisted in local storage (and AES encrypted) screenshot

  • Asteroids - A golang implementation of the classic arcade game that cross-compiles into WASM so you can play it in a browser. screenshot

  • 8-bit Trip - An experiment in webaudio. web-app

  • BYOK 3 - A Forth interpreter/compiler written in Scala with Cats. screencast

barebones-toolchain's People

Contributors

rm-hull avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

barebones-toolchain's Issues

Add build script

It should be nice to have the script that generated the repo. I've created one for convenience

# Following https://wiki.osdev.org/GCC_Cross-Compiler instructions
#Package 	Version
#binutils 	2.27
#gcc 		6.2.0
#gmp 		6.1.1
#isl 		0.17
#mpc 		1.0.3
#mpfr 		3.1.4

export PREFIX="$HOME/opt/cross"
export TARGET=i686-elf
export PATH="$PREFIX/bin:$PATH"

mkdir $HOME/src && cd $HOME/src

wget https://ftp.gnu.org/gnu/binutils/binutils-2.27.tar.gz
tar xzf binutils-2.27.tar.gz && rm binutils-2.27.tar.gz
mkdir build-binutils && cd build-binutils
../binutils-2.27/configure --target=$TARGET --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror
make
make install

cd $HOME/src
 
# The $PREFIX/bin dir _must_ be in the PATH. We did that above.
which -- $TARGET-as || echo $TARGET-as is not in the PATH
 
wget https://ftp.gnu.org/gnu/gmp/gmp-6.1.1.tar.bz2
tar xjf gmp-6.1.1.tar.bz2 && rm gmp-6.1.1.tar.bz2
mkdir build-gmp && cd build-gmp
../gmp*/configure --prefix=$PWD
make
make check
make install
cd ..


wget https://ftp.gnu.org/gnu/mpfr/mpfr-3.1.4.tar.gz
tar xzf mpfr-3.1.4.tar.gz && rm mpfr-3.1.4.tar.gz
mkdir build-mpfr && cd build-mpfr
../mpfr*/configure --prefix=$PWD --with-gmp=$PWD/../build-gmp
make
make install
cd ..

wget https://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
tar xzf mpc-1.0.3.tar.gz && rm mpc-1.0.3.tar.gz
mkdir build-mpc && cd build-mpc
../mpc*/configure --prefix=$PWD --with-gmp=$PWD/../build-gmp --with-mpfr=$PWD/../build-mpfr
make
make install
cd ..


# Build ISL
http://isl.gforge.inria.fr/isl-0.17.tar.gz
tar xzf isl-0.17.tar.gz && rm isl-0.17.tar.gz
mkdir build-isl install-isl
cd build-isl
../isl*/configure --prefix=$PWD/../install-isl/ --with-gmp-prefix=$PWD/../build-gmp
make
make install
cd ..

wget https://ftp.gnu.org/gnu/gcc/gcc-6.2.0/gcc-6.2.0.tar.gz
tar xzf gcc-6.2.0.tar.gz && rm gcc-6.2.0.tar.gz
mkdir build-gcc
cd build-gcc
../gcc-6.2.0/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers \
  --with-gmp=$PWD/../build-gmp --with-mpfr=$PWD/../build-mpfr --with-mpc=$PWD/../build-mpc --with-isl=$PWD/../install-isl
make all-gcc
make all-target-libgcc
make install-gcc
make install-target-libgcc

Addition of PowerPC and RasperyPi

If you can add PowerPC to the list of architectures, that would be awesome! Thanks ๐Ÿ˜ธ. And Finnaly also RasperyPi if there are enough docs for you :l

More Features?

I am currently very depedant on this github project for my Cross Compiler.. As i improve in the future , i will be developing on multiple arch's rather than just x86 and x86-64 .. May you consider adding more arch's please? For example : mips , arm , arm64, etc..

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.