malloc.lst 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. GAS LISTING /tmp/ccxXwTuo.s page 1
  2. 1 .file "malloc.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.malloc,"ax",@progbits
  10. 9 .global malloc
  11. 10 .type malloc, @function
  12. 11 malloc:
  13. 12 /* prologue: function */
  14. 13 /* frame size = 0 */
  15. 14 /* stack size = 0 */
  16. 15 .L__stack_usage = 0
  17. 16 0000 BC01 movw r22,r24
  18. 17 0002 80E0 ldi r24,lo8(heapFreeList)
  19. 18 0004 90E0 ldi r25,hi8(heapFreeList)
  20. 19 0006 0E94 0000 call NutHeapRootAlloc
  21. 20 000a 0097 sbiw r24,0
  22. 21 000c 01F4 brne .L2
  23. 22 000e 2CE0 ldi r18,lo8(12)
  24. 23 0010 30E0 ldi r19,0
  25. 24 0012 3093 0000 sts errno+1,r19
  26. 25 0016 2093 0000 sts errno,r18
  27. 26 .L2:
  28. 27 001a 0895 ret
  29. 28 .size malloc, .-malloc
  30. 29 .section .text.free,"ax",@progbits
  31. 30 .global free
  32. 31 .type free, @function
  33. 32 free:
  34. 33 /* prologue: function */
  35. 34 /* frame size = 0 */
  36. 35 /* stack size = 0 */
  37. 36 .L__stack_usage = 0
  38. 37 0000 BC01 movw r22,r24
  39. 38 0002 80E0 ldi r24,lo8(heapFreeList)
  40. 39 0004 90E0 ldi r25,hi8(heapFreeList)
  41. 40 0006 0C94 0000 jmp NutHeapRootFree
  42. 41 .size free, .-free
  43. 42 .ident "GCC: (GNU) 5.3.0"
  44. GAS LISTING /tmp/ccxXwTuo.s page 2
  45. DEFINED SYMBOLS
  46. *ABS*:0000000000000000 malloc.c
  47. /tmp/ccxXwTuo.s:2 *ABS*:000000000000003e __SP_H__
  48. /tmp/ccxXwTuo.s:3 *ABS*:000000000000003d __SP_L__
  49. /tmp/ccxXwTuo.s:4 *ABS*:000000000000003f __SREG__
  50. /tmp/ccxXwTuo.s:5 *ABS*:000000000000003b __RAMPZ__
  51. /tmp/ccxXwTuo.s:6 *ABS*:0000000000000000 __tmp_reg__
  52. /tmp/ccxXwTuo.s:7 *ABS*:0000000000000001 __zero_reg__
  53. /tmp/ccxXwTuo.s:11 .text.malloc:0000000000000000 malloc
  54. /tmp/ccxXwTuo.s:32 .text.free:0000000000000000 free
  55. UNDEFINED SYMBOLS
  56. heapFreeList
  57. NutHeapRootAlloc
  58. errno
  59. NutHeapRootFree