How do I use GCC (or something else) to compile C into MIPS assembly?
I've tried all kinds of options with all kinds of values and I can't figure anything out. I also can't find any information on the web besides a few people asking questions that don't get answered.
I looked at man gcc and it didn't help me any. It lists thousands of options that don't make any sense.
For example, under "Target Options" it has "-b machine" but when I run gcc with -b it says the -b option is unrecognized. Not the value to -b, but just "-b" itself. WTF?! Then why is it listed right there like it's supposed to mean something?!
I've also looked at the online documentation at gcc.gnu.org and gcc --help and gcc --target-help. Always tons of stuff that makes no sense.
I've never had as much trouble with anything as I've had with GCC over the years. I still can't ever figure out how to get GCC to do anything I want.
>>4
Also, read this http://gcc.gnu.org/install/ about how to configure, build and install gcc for a specific platform. If you're working on an x86 system, you'll need to build a cross-compiler. Which means you won't be able to 3-stage bootstrap etc etc rtfm etc.
Name:
Anonymous2007-11-09 23:57
And also, the repository for Ubuntu 7.10 only list 3 items when searching for MIPS, and none of them relate to GCC. What's the deal with that? Does Ubuntu hate MIPS or something?
>>6
Thanks. Through all my searching I never once saw anything mention that I'd need to build GCC for a different architecture. I assumed my build of GCC came with support for all the architectures GCC can support.