Sorry Windows users, this is a job for linux. This is for under pretty much any version of Ubuntu. If you are not on Ubuntu or any Debian based OS you will need to install some packages manually.
Prerequisites
You must have gcc and make installed before continuing
Code:
sudo apt-get install gcc make
First you must get the proper packages
Code:
sudo apt-get install libgmp3-dev libmpfr-dev texinfo git-core gettext build-essential
Continue on past this to "Clone free60s git" if you are using Ubuntu.
Building gmp and mpfr manually.
gmp first
Code:
cd /tmp/
wget http://ftp.gnu.org/gnu/gmp/gmp-4.3.2.tar.gz
tar xvf gmp-4.3.2.tar.gz
cd gmp-4.3.2
./configure
sudo make install
then mpfr
Code:
cd /tmp/
wget http://ftp.gnu.org/gnu/mpfr/mpfr-3.0.0.tar.gz
tar xvf mpfr-3.0.0.tar.gz
cd mpfr-3.0.0
./configure
sudo make install
Clone free60s git
Code:
git clone git://free60.git.sourceforge.net/gitroot/free60/free60
Navigate to the toochain dir
Code:
cd free60/toolchain
Build the toolchain as superuser
Code:
sudo ./build-xenon-toolchain toolchain
When its done open up .bashrc in gedit
Add these lines to the bottom
Code:
export DEVKITXENON="/usr/local/xenon"
export PATH="$PATH:$DEVKITXENON/bin:$DEVKITXENON/usr/bin"
Close terminal and open it back up for the changes to take effect.
Compile your assembly code
Code:
xenon-as -be -many asmcode.S -o out.elf
Output it as binary
Code:
xenon-objcopy out.elf -O binary out.bin