1.This is my mips assembly code
.dataout_string: .ascii "hello \n" .text .global mainmain: li $v0, 4 la $a0, out_string syscall li $v0, 10 syscall
2.Then I as the code
mipsel-linux-gun-as --march=mips2 word.S -o word.o
3.I use the gcc link the code
mipsel-linux-gun-gcc -L /usr/mipsel-linux-gun word.o -o word
4.I use the qemu simulation the mips enviroment to execute the bin . The I get some error !!!
qemu: uncaught target signal 11 (Segmentation fault) - core dumpedSegmentation fault (core dumped)
- Can you help me to compiler the mips code! Thanks!