MIPS Release 6はCodescape MIPS SDK Essentialsで試せる
Codescape MIPS SDK Essentialsといってもgcc、g++、gfortran
それとqemuも付いてるからコンパイルしたプログラムをqemu上で実行することも可能

Download Codescape MIPS SDK Essentials
https://community.imgtec.com/developers/mips/tools/codescape-mips-sdk/download-codescape-mips-sdk-essentials/

Codescape GNU Tools for MIPS IMGはMIPS Release 6用
Codescape GNU Tools for MIPS MTIはMIPS Release 5とそれ以前用

LinuxでのCodescapeのインストールの仕方は
http://codescape-mips-sdk.imgtec.com/installer/essentials/release/CodescapeMIPSSDK-1.4.1.07/CodescapeMIPSSDK-1.4.1.07-linux-x64-installer.run
をダウンロードして
chmod u+x CodescapeMIPSSDK-1.4.1.07-linux-x64-installer.run
sudo ./CodescapeMIPSSDK-1.4.1.07-linux-x64-installer.run

これでインストーラーが走る


コンパイル方法
export PATH=/opt/imgtec/Toolchains/mips-img-linux-gnu/2016.05-03/bin:$PATH
mips-img-linux-gnu-gcc -EL -march=mips64r6 -mabi=64 -O2 -o hogehoge hogehoge.c
mips-img-linux-gnu-g++ -EL -march=mips64r6 -mabi=64 -O2 -o hogehoge hogehoge.cpp
mips-img-linux-gnu-gfortran -EL -march=mips64r6 -mabi=64 -O2 -o hogehoge hogehoge.f
注意:-ELはリトルエンディアンの指定、ビッグエンディアンなら-EB


qemuでの実行方法

こんな感じのシェルスクリプトを書いて実行

qemu-mips64el.sh

#!/bin/bash
export LD_LIBRARY_PATH=/opt/imgtec/Toolchains/mips-img-linux-gnu/2016.05-03/mips-img-linux-gnu/lib/mipsel-r6-hard/lib64
/opt/imgtec/Simulators/qemu/2.5.0.2.0/bin/qemu-mips64el -cpu MIPS64R6-generic -L /opt/imgtec/Toolchains/mips-img-linux-gnu/2016.05-03/sysroot/mipsel-r6-hard $1

注意:ビッグエンディアンならqemu-mips64を使用する

実行権の付加
chmod u+x qemu-mips64el.sh

実行
./qemu-mips64el.sh hogehoge



32bitなら
コンパイル
export PATH=/opt/imgtec/Toolchains/mips-img-linux-gnu/2016.05-03/bin:$PATH
mips-img-linux-gnu-gcc -EL -march=mips32r6 -mabi=32 -O2 -o hogehoge hogehoge.c
mips-img-linux-gnu-g++ -EL -march=mips32r6 -mabi=32 -O2 -o hogehoge hogehoge.cpp
mips-img-linux-gnu-gfortran -EL -march=mips64r6 -mabi=32 -O2 -o hogehoge hogehoge.f


qemu-mipsel.sh

#!/bin/bash
export LD_LIBRARY_PATH=/opt/imgtec/Toolchains/mips-img-linux-gnu/2016.05-03/mips-img-linux-gnu/lib/mipsel-r6-hard/lib
/opt/imgtec/Simulators/qemu/2.5.0.2.0/bin/qemu-mipsel -cpu mips32r6-generic -L /opt/imgtec/Toolchains/mips-img-linux-gnu/2016.05-03/sysroot/mipsel-r6-hard $1