Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22102

Why qemu execute the bin of mipsel failed?

$
0
0

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)
  1. Can you help me to compiler the mips code! Thanks!

Viewing all articles
Browse latest Browse all 22102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>