fork download
  1. .file "main.cpp"
  2. .def ___main; .scl 2; .type 32; .endef
  3. .section .rdata,"dr"
  4. LC0:
  5. .ascii "%d\0"
  6. .text
  7. .globl _main
  8. .def _main; .scl 2; .type 32; .endef
  9. _main:
  10. LFB8:
  11. .cfi_startproc
  12. pushl %ebp
  13. .cfi_def_cfa_offset 8
  14. .cfi_offset 5, -8
  15. movl %esp, %ebp
  16. .cfi_def_cfa_register 5
  17. andl $-16, %esp
  18. subl $32, %esp
  19. call ___main
  20. movl $0, 28(%esp)
  21. movl $0, 24(%esp)
  22. jmp L2
  23. L3:
  24. movl 24(%esp), %eax
  25. addl %eax, 28(%esp)
  26. incl 24(%esp)
  27. L2:
  28. cmpl $100, 24(%esp)
  29. setle %al
  30. testb %al, %al
  31. jne L3
  32. movl 28(%esp), %eax
  33. movl %eax, 4(%esp)
  34. movl $LC0, (%esp)
  35. call _printf
  36. movl $0, %eax
  37. leave
  38. .cfi_restore 5
  39. .cfi_def_cfa 4, 4
  40. ret
  41. .cfi_endproc
  42. LFE8:
  43. .def _printf; .scl 2; .type 32; .endef
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.s: Assembler messages:
prog.s: Warning: end of file not at end of a line; newline inserted
prog.s:2: Error: unknown pseudo-op: `.def'
prog.s:2: Error: unknown pseudo-op: `.scl'
prog.s:2: Error: Missing symbol name in directive
prog.s:2: Error: unrecognized symbol type "32"
prog.s:2: Error: unknown pseudo-op: `.endef'
prog.s:3: Fatal error: bad .section directive: want a,w,x,M,S,G,T in string
stdout
Standard output is empty