Skip to content

Instantly share code, notes, and snippets.

@ogatatsu
Last active June 15, 2021 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogatatsu/0aa1187038b301c1556685108d1fcf72 to your computer and use it in GitHub Desktop.
Save ogatatsu/0aa1187038b301c1556685108d1fcf72 to your computer and use it in GitHub Desktop.
sudo apt update
sudo apt upgrade
sudo apt install build-essential
sudo apt install libgmp-dev
sudo apt install libmpc-dev
sudo apt install libmpfr-dev
wget http://core.ring.gr.jp/pub/GNU/binutils/binutils-2.33.1.tar.gz
tar xvzf binutils-2.33.1.tar.gz
cd ./binutils-2.33.1
./configure --target=h8300-elf --disable-nls
make
sudo make install
cd ~
wget http://core.ring.gr.jp/pub/GNU/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz
tar xvzf gcc-9.2.0.tar.gz
cd ./gcc-9.2.0
./configure --target=h8300-elf --disable-nls --disable-threads --disable-shared --enable-languages=c
make all-gcc
sudo make install-gcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment