I am trying to compile a file of C code into mips assembly. My OS is suse linux and I already have gcc and cross-mips-binutils installed - I simply don't know what commands to use to cross-compile into mips.
I already used:
gcc -S text.c -o text.s
and it compiled fine - just not into mips. I also looked through other posts here on stack overflow like: How to cross-compile for MIPS? but either they are not helpful or like this one, the helpful links don't work anymore.
I would appreciate any help! Thanks :)
cross-mips-binutils
is not sufficient for compilation, only linking, creating archives, etc. You need cross-mips-gcc
in order to generate MIPS assembly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With