hello.s 934 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. .file 1 "hello.c"
  2. # GNU C 2.7.2.3 [AL 1.1, MM 40, tma 0.1] SimpleScalar running sstrix compiled by GNU C
  3. # Cc1 defaults:
  4. # -mgas -mgpOPT
  5. # Cc1 arguments (-G value = 8, Cpu = default, ISA = 1):
  6. # -quiet -dumpbase -o
  7. gcc2_compiled.:
  8. __gnu_compiled_c:
  9. .sdata
  10. .align 3
  11. $LC0:
  12. .word 0x00000000 # 2
  13. .word 0x40000000
  14. .align 3
  15. $LC1:
  16. .word 0x00000000 # 3.5
  17. .word 0x400c0000
  18. .text
  19. .align 2
  20. .globl main
  21. .text
  22. .loc 1 2
  23. .ent main
  24. main:
  25. .frame $fp,56,$31 # vars= 32, regs= 2/0, args= 16, extra= 0
  26. .mask 0xc0000000,-4
  27. .fmask 0x00000000,0
  28. subu $sp,$sp,56
  29. sw $31,52($sp)
  30. sw $fp,48($sp)
  31. move $fp,$sp
  32. jal __main
  33. li $2,0x00000001 # 1
  34. sw $2,16($fp)
  35. li $2,0x00000005 # 5
  36. sw $2,20($fp)
  37. l.d $f0,$LC0
  38. s.d $f0,24($fp)
  39. l.d $f0,$LC1
  40. s.d $f0,32($fp)
  41. li $2,0x00000061 # 97
  42. sb $2,40($fp)
  43. move $2,$0
  44. j $L1
  45. $L1:
  46. move $sp,$fp # sp not trusted here
  47. lw $31,52($sp)
  48. lw $fp,48($sp)
  49. addu $sp,$sp,56
  50. j $31
  51. .end main