1 |
Replace the compiler target name with the name on your system. |
2 |
|
3 |
|
4 |
MIPS (64-bit) |
5 |
------------- |
6 |
mips64-unknown-elf-gcc -I../../src/include/testmachine -g -O3 -DMIPS mp.c -mips64 -mabi=64 -c -o mp_mips.o |
7 |
mips64-unknown-elf-ld -Ttext 0xa800000000030000 -e f mp_mips.o -o mp_mips --oformat=elf64-bigmips |
8 |
file mp_mips |
9 |
../../gxemul -E testmips -n 8 mp_mips |
10 |
|
11 |
|
12 |
MIPS (32-bit) |
13 |
------------- |
14 |
mips64-unknown-elf-gcc -I../../src/include/testmachine -g -O3 -DMIPS mp.c -mips32r2 -mabi=32 -c -o mp_mips32.o |
15 |
mips64-unknown-elf-ld -Ttext 0x80030000 -e f mp_mips32.o -o mp_mips32 |
16 |
file mp_mips32 |
17 |
../../gxemul -E testmips -C 4KEc -n 8 mp_mips32 |
18 |
|
19 |
|