FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


GCC cross compile to MIPS





thnn
Has anyone tried using GCC to cross compile c code to the MIPS architecture?

I am curious as to how you do this. The compiler gives "bad value (mips32) for -march switch" when I try and use it

I am using Ubuntu 10.04 on an x86-64 machine, but would like to compile some code for the MIPS ISA.
I don't actually need to link or assemble the code, just compile it, however having the ability to link and assemble the code if I wanted to, would be desirable.
johnsworthy
You should seriously check out crosstool by Kegel. It's a collections of script already setup to cross-compile. If your architecture isn't there, it's still easier to modify crosstool to do the job for you.
If you don't use cross-tool you will have to wonder about bootstraping building toolchains, gcc and all the utils. Not worth it imho.
Related topics
Linux from scratch?
Linux compiler to .exe file?
Is it possible to compile gtk+ with Tcc instead of Gcc?
Creating a new Operating System
C/C++
C++ for cronjobs?
Anyone like cross country?
Cross country state
The answer to "Why did the Chicken Cross the Road???&am
Cross-upgrading Mambo to Joomla
Why did the chicken cross the road?
Please help. I have a problem with installing FreeBSD
CSS Editor?
Did Jesus survive the crucifixion?
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.