2007年10月31日星期三

GCC cross compiler of MIPS under GNU/Linux

Post here because It's useful and hard find...

Include: binutils,  gcc,  glibc, gdb

Must compile   binutils  in the first place !

#here is binutiles

./configure -target=mips-elf --program-prefix=mips-

make

make install

in GCC, suggesting only enable c rather than c++ or some else...
option "--disable-libssp" becouse libssp can't successfully compiled.

#here is GCC

./configure -target=mips -prefix=/usr/local --disable-libssp -program-prefix=mips- -enable-languages='c'
make


binutils and GCC is enough for my misp asm learning...

OK.~

TIPs:  `swiftfox` is very fast in my computer, i replace the build-in firefox with it.

没有评论: