Method of compile:
Plan A: openwrt buildroot
http://wiki.openwrt.org/doc/howto/buildroot.exigence
Plan B: Embedded Linux Development Kit
http://www.denx.de/wiki/DULG/ELDK
Plan C: Sourcery CodeBench for MIPS GNU/Linux, Lite Edition is free.
Plan D: Native GCC at High speed MIPS CPU.
Plan E: Native GCC at MIPS QEMU emulator
Plan F: Native GCC run at Yun