fork download
  1. .file "test_switch.c"
  2. .intel_syntax noprefix
  3. .def ___main; .scl 2; .type 32; .endef
  4. .section .rdata,"dr"
  5. LC0:
  6. .ascii "%u\0"
  7. LC1:
  8. .ascii "Zero\0"
  9. LC2:
  10. .ascii "One\0"
  11. LC3:
  12. .ascii "Two\0"
  13. LC4:
  14. .ascii "Three\0"
  15. LC5:
  16. .ascii "Four\0"
  17. .section .text.startup,"x"
  18. .p2align 2,,3
  19. .globl _main
  20. .def _main; .scl 2; .type 32; .endef
  21. _main:
  22. LFB12:
  23. .cfi_startproc
  24. push ebp
  25. .cfi_def_cfa_offset 8
  26. .cfi_offset 5, -8
  27. mov ebp, esp
  28. .cfi_def_cfa_register 5
  29. and esp, -16
  30. sub esp, 32
  31. call ___main
  32. lea eax, [esp+28]
  33. mov DWORD PTR [esp+4], eax
  34. mov DWORD PTR [esp], OFFSET FLAT:LC0
  35. call _scanf
  36. cmp DWORD PTR [esp+28], 4
  37. ja L2
  38. mov eax, DWORD PTR [esp+28]
  39. jmp [DWORD PTR L8[0+eax*4]]
  40. .section .rdata,"dr"
  41. .align 4
  42. L8:
  43. .long L3
  44. .long L4
  45. .long L5
  46. .long L6
  47. .long L7
  48. .section .text.startup,"x"
  49. L7:
  50. mov DWORD PTR [esp], OFFSET FLAT:LC5
  51. call _printf
  52. .p2align 2,,3
  53. L2:
  54. xor eax, eax
  55. leave
  56. .cfi_remember_state
  57. .cfi_restore 5
  58. .cfi_def_cfa 4, 4
  59. ret
  60. L6:
  61. .cfi_restore_state
  62. mov DWORD PTR [esp], OFFSET FLAT:LC4
  63. call _printf
  64. jmp L2
  65. L3:
  66. mov DWORD PTR [esp], OFFSET FLAT:LC1
  67. call _printf
  68. jmp L2
  69. L4:
  70. mov DWORD PTR [esp], OFFSET FLAT:LC2
  71. call _printf
  72. jmp L2
  73. L5:
  74. mov DWORD PTR [esp], OFFSET FLAT:LC3
  75. call _printf
  76. jmp L2
  77. .cfi_endproc
  78. LFE12:
  79. .def _scanf; .scl 2; .type 32; .endef
  80. .def _printf; .scl 2; .type 32; .endef
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty