orestisp@orestisp-debian:~$ spim -file print-mips.s
SPIM Version 8.0 of January 8, 2010
Copyright 1990-2010, James R. Larus.
All Rights Reserved.
See the file README for a full copyright notice.
Loaded: /usr/lib/spim/exceptions.s
1 2 3 4 5 6 7 8 9 10

orestisp@orestisp-debian:~$ spim -file print-mips-dyn.s
SPIM Version 8.0 of January 8, 2010
Copyright 1990-2010, James R. Larus.
All Rights Reserved.
See the file README for a full copyright notice.
Loaded: /usr/lib/spim/exceptions.s
1 2 3 4 5 6 7 8 9 10

orestisp@orestisp-debian:~$ gcc -o print print.c
orestisp@orestisp-debian:~$ ./print
1 2 3 4 5 6 7 8 9 10
orestisp@orestisp-debian:~$ rm -f print

orestisp@orestisp-debian:~$ gcc -o print print-x86.s
orestisp@orestisp-debian:~$ ./print
1 2 3 4 5 6 7 8 9 10
orestisp@orestisp-debian:~$ rm -f print