fork(4) download
  1. .file "test_jtable_const.c"
  2. .intel_syntax noprefix
  3. .section .rdata,"dr"
  4. LC1:
  5. .ascii "Four\0"
  6. .text
  7. .p2align 2,,3
  8. .def _print4; .scl 3; .type 32; .endef
  9. _print4:
  10. LFB11:
  11. .cfi_startproc
  12. sub esp, 28
  13. .cfi_def_cfa_offset 32
  14. mov DWORD PTR [esp], OFFSET FLAT:LC1
  15. call _printf
  16. add esp, 28
  17. .cfi_def_cfa_offset 4
  18. ret
  19. .cfi_endproc
  20. LFE11:
  21. .section .rdata,"dr"
  22. LC2:
  23. .ascii "Three\0"
  24. .text
  25. .p2align 2,,3
  26. .def _print3; .scl 3; .type 32; .endef
  27. _print3:
  28. LFB10:
  29. .cfi_startproc
  30. sub esp, 28
  31. .cfi_def_cfa_offset 32
  32. mov DWORD PTR [esp], OFFSET FLAT:LC2
  33. call _printf
  34. add esp, 28
  35. .cfi_def_cfa_offset 4
  36. ret
  37. .cfi_endproc
  38. LFE10:
  39. .section .rdata,"dr"
  40. LC3:
  41. .ascii "Two\0"
  42. .text
  43. .p2align 2,,3
  44. .def _print2; .scl 3; .type 32; .endef
  45. _print2:
  46. LFB9:
  47. .cfi_startproc
  48. sub esp, 28
  49. .cfi_def_cfa_offset 32
  50. mov DWORD PTR [esp], OFFSET FLAT:LC3
  51. call _printf
  52. add esp, 28
  53. .cfi_def_cfa_offset 4
  54. ret
  55. .cfi_endproc
  56. LFE9:
  57. .section .rdata,"dr"
  58. LC4:
  59. .ascii "One\0"
  60. .text
  61. .p2align 2,,3
  62. .def _print1; .scl 3; .type 32; .endef
  63. _print1:
  64. LFB8:
  65. .cfi_startproc
  66. sub esp, 28
  67. .cfi_def_cfa_offset 32
  68. mov DWORD PTR [esp], OFFSET FLAT:LC4
  69. call _printf
  70. add esp, 28
  71. .cfi_def_cfa_offset 4
  72. ret
  73. .cfi_endproc
  74. LFE8:
  75. .section .rdata,"dr"
  76. LC5:
  77. .ascii "Zero\0"
  78. .text
  79. .p2align 2,,3
  80. .def _print0; .scl 3; .type 32; .endef
  81. _print0:
  82. LFB7:
  83. .cfi_startproc
  84. sub esp, 28
  85. .cfi_def_cfa_offset 32
  86. mov DWORD PTR [esp], OFFSET FLAT:LC5
  87. call _printf
  88. add esp, 28
  89. .cfi_def_cfa_offset 4
  90. ret
  91. .cfi_endproc
  92. LFE7:
  93. .def ___main; .scl 2; .type 32; .endef
  94. .section .rdata,"dr"
  95. LC6:
  96. .ascii "%u\0"
  97. .data
  98. .align 4
  99. LC0:
  100. .long _print0
  101. .long _print1
  102. .long _print2
  103. .long _print3
  104. .long _print4
  105. .section .text.startup,"x"
  106. .p2align 2,,3
  107. .globl _main
  108. .def _main; .scl 2; .type 32; .endef
  109. _main:
  110. LFB12:
  111. .cfi_startproc
  112. push ebp
  113. .cfi_def_cfa_offset 8
  114. .cfi_offset 5, -8
  115. mov ebp, esp
  116. .cfi_def_cfa_register 5
  117. push edi
  118. push esi
  119. and esp, -16
  120. sub esp, 48
  121. .cfi_offset 6, -16
  122. .cfi_offset 7, -12
  123. call ___main
  124. lea eax, [esp+44]
  125. mov DWORD PTR [esp+4], eax
  126. mov DWORD PTR [esp], OFFSET FLAT:LC6
  127. call _scanf
  128. lea edi, [esp+24]
  129. mov esi, OFFSET FLAT:LC0
  130. mov ecx, 5
  131. rep movsd
  132. mov eax, DWORD PTR [esp+44]
  133. call [DWORD PTR [esp+24+eax*4]]
  134. xor eax, eax
  135. lea esp, [ebp-8]
  136. pop esi
  137. .cfi_restore 6
  138. pop edi
  139. .cfi_restore 7
  140. pop ebp
  141. .cfi_def_cfa 4, 4
  142. .cfi_restore 5
  143. ret
  144. .cfi_endproc
  145. LFE12:
  146. .def _printf; .scl 2; .type 32; .endef
  147. .def _scanf; .scl 2; .type 32; .endef
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty