Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. 1 .syntax unified
  2. 2 .cpu cortex-m3
  3. 3 .fpu softvfp
  4. 4 .eabi_attribute 20, 1
  5. 5 .eabi_attribute 21, 1
  6. 6 .eabi_attribute 23, 3
  7. 7 .eabi_attribute 24, 1
  8. 8 .eabi_attribute 25, 1
  9. 9 .eabi_attribute 26, 1
  10. 10 .eabi_attribute 30, 1
  11. 11 .eabi_attribute 34, 1
  12. 12 .eabi_attribute 18, 4
  13. 13 .thumb
  14. 14 .file "test.c"
  15. 15 .text
  16. 16 .Ltext0:
  17. 17 .cfi_sections .debug_frame
  18. 18 .align 2
  19. 19 .global svcTest
  20. 20 .thumb
  21. 21 .thumb_func
  22. 23 svcTest:
  23. 24 .LFB0:
  24. 25 .file 1 "test.h"
  25. 1:test.h ****
  26. 2:test.h **** inline void svcTest (int a, int *b)
  27. 3:test.h **** {
  28. 26 .loc 1 3 0
  29. 27 .cfi_startproc
  30. 28 @ args = 0, pretend = 0, frame = 0
  31. 29 @ frame_needed = 0, uses_anonymous_args = 0
  32. 30 @ link register save eliminated.
  33. 31 .LVL0:
  34. 4:test.h **** register int p1 __asm__("r0") = a;
  35. 5:test.h **** register int *p2 __asm__("r1") = b;
  36. 6:test.h **** __asm__ __volatile__ ("svc %0"
  37. 32 .loc 1 6 0
  38. 33 @ 6 "test.h" 1
  39. 34 0000 0CDF svc #12
  40. 35 @ 0 "" 2
  41. 36 .thumb
  42. 37 0002 7047 bx lr
  43. 38 .cfi_endproc
  44. 39 .LFE0:
  45. 41 .align 2
  46. 42 .global fooBar
  47. 43 .thumb
  48. 44 .thumb_func
  49. 46 fooBar:
  50. 47 .LFB1:
  51. 48 .file 2 "test.c"
  52. 1:test.c **** #include <stddef.h>
  53. 2:test.c ****
  54. 3:test.c **** #include "test.h"
  55. 4:test.c ****
  56. 5:test.c **** void fooBar (int x, const int *y)
  57. 6:test.c **** {
  58. 49 .loc 2 6 0
  59. 50 .cfi_startproc
  60. 51 @ args = 0, pretend = 0, frame = 0
  61. 52 @ frame_needed = 0, uses_anonymous_args = 0
  62. 53 @ link register save eliminated.
  63. 54 .LVL1:
  64. 55 0004 0346 mov r3, r0
  65. 56 .LBB4:
  66. 57 .LBB5:
  67. 4:test.h **** register int p1 __asm__("r0") = a;
  68. 58 .loc 1 4 0
  69. 59 0006 2121 movs r1, #33
  70. 60 .LVL2:
  71. 5:test.h **** __asm__ __volatile__ ("svc %0"
  72. 61 .loc 1 5 0
  73. 62 0008 0022 movs r2, #0
  74. 63 .LVL3:
  75. 64 .L3:
  76. 4:test.h **** register int p1 __asm__("r0") = a;
  77. 65 .loc 1 4 0 discriminator 1
  78. 66 000a 0846 mov r0, r1
  79. 67 .loc 1 6 0 discriminator 1
  80. 68 @ 6 "test.h" 1
  81. 69 000c 0CDF svc #12
  82. 70 @ 0 "" 2
  83. 71 .thumb
  84. 72 .LBE5:
  85. 73 .LBE4:
  86. 7:test.c **** do
  87. 8:test.c **** {
  88. 9:test.c **** svcTest(33, NULL);
  89. 10:test.c **** x--;
  90. 74 .loc 2 10 0 discriminator 1
  91. 75 000e 013B subs r3, r3, #1
  92. 76 .LVL4:
  93. 11:test.c **** }
  94. 12:test.c **** while (x>0);
  95. 77 .loc 2 12 0 discriminator 1
  96. 78 0010 002B cmp r3, #0
  97. 79 0012 FADC bgt .L3
  98. 13:test.c **** }
  99. 80 .loc 2 13 0
  100. 81 0014 7047 bx lr
  101. 82 .cfi_endproc
  102. 83 .LFE1:
  103. 85 .Letext0:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement