This is an old revision of the document!
MIPS Cross Compiler build
Commercial Version
There is a commercial free version available from Mentor Graphics.
Build from source
What we need:
Compile and Run
Compile to Assembler for viewing
mipsel-none-elf-gcc -S fir.c
The output is fir.s which is the assembler code.
Compile and link ready for simulation with instruction set simulator
mipsel-none-elf-gcc -o fir -Tidt.ld fir.c
Run the code
mipsel-none-elf-run fir
Analyze
Produce an annoted source code
gcc -fprofile-arcs -ftest-coverage -o fir fir.c
./fir
gcov fir.c
Run with instruction tracing in the simulator
mipsel-none-elf-run –trace-insn=on –trace-file trace fir