calloc_dbg.lst 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. GAS LISTING /tmp/ccekWjom.s page 1
  2. 1 .file "calloc_dbg.c"
  3. 2 __SP_H__ = 0x3e
  4. 3 __SP_L__ = 0x3d
  5. 4 __SREG__ = 0x3f
  6. 5 __RAMPZ__ = 0x3b
  7. 6 __tmp_reg__ = 0
  8. 7 __zero_reg__ = 1
  9. 8 .section .text.dbg_calloc,"ax",@progbits
  10. 9 .global dbg_calloc
  11. 10 .type dbg_calloc, @function
  12. 11 dbg_calloc:
  13. 12 0000 0F93 push r16
  14. 13 0002 1F93 push r17
  15. 14 0004 CF93 push r28
  16. 15 0006 DF93 push r29
  17. 16 /* prologue: function */
  18. 17 /* frame size = 0 */
  19. 18 /* stack size = 4 */
  20. 19 .L__stack_usage = 4
  21. 20 0008 FB01 movw r30,r22
  22. 21 000a BA01 movw r22,r20
  23. 22 000c E89F mul r30,r24
  24. 23 000e 8001 movw r16,r0
  25. 24 0010 E99F mul r30,r25
  26. 25 0012 100D add r17,r0
  27. 26 0014 F89F mul r31,r24
  28. 27 0016 100D add r17,r0
  29. 28 0018 1124 clr r1
  30. 29 001a A901 movw r20,r18
  31. 30 001c C801 movw r24,r16
  32. 31 001e 0E94 0000 call dbg_malloc
  33. 32 0022 EC01 movw r28,r24
  34. 33 0024 0097 sbiw r24,0
  35. 34 0026 01F0 breq .L2
  36. 35 0028 A801 movw r20,r16
  37. 36 002a 60E0 ldi r22,0
  38. 37 002c 70E0 ldi r23,0
  39. 38 002e 0E94 0000 call memset
  40. 39 .L2:
  41. 40 0032 CE01 movw r24,r28
  42. 41 /* epilogue start */
  43. 42 0034 DF91 pop r29
  44. 43 0036 CF91 pop r28
  45. 44 0038 1F91 pop r17
  46. 45 003a 0F91 pop r16
  47. 46 003c 0895 ret
  48. 47 .size dbg_calloc, .-dbg_calloc
  49. 48 .ident "GCC: (GNU) 5.3.0"
  50. GAS LISTING /tmp/ccekWjom.s page 2
  51. DEFINED SYMBOLS
  52. *ABS*:0000000000000000 calloc_dbg.c
  53. /tmp/ccekWjom.s:2 *ABS*:000000000000003e __SP_H__
  54. /tmp/ccekWjom.s:3 *ABS*:000000000000003d __SP_L__
  55. /tmp/ccekWjom.s:4 *ABS*:000000000000003f __SREG__
  56. /tmp/ccekWjom.s:5 *ABS*:000000000000003b __RAMPZ__
  57. /tmp/ccekWjom.s:6 *ABS*:0000000000000000 __tmp_reg__
  58. /tmp/ccekWjom.s:7 *ABS*:0000000000000001 __zero_reg__
  59. /tmp/ccekWjom.s:11 .text.dbg_calloc:0000000000000000 dbg_calloc
  60. UNDEFINED SYMBOLS
  61. dbg_malloc
  62. memset