fork download
  1. .file "test.cpp"
  2. .section .text._Z3fooIiEiv,"axG",@progbits,_Z3fooIiEiv,comdat
  3. .p2align 4,,15
  4. .weak _Z3fooIiEiv
  5. .type _Z3fooIiEiv, @function
  6. _Z3fooIiEiv:
  7. .LFB2:
  8. .cfi_startproc
  9. movl $42, %eax
  10. ret
  11. .cfi_endproc
  12. .LFE2:
  13. .size _Z3fooIiEiv, .-_Z3fooIiEiv
  14. .section .text._Z3fooIjEiv,"axG",@progbits,_Z3fooIjEiv,comdat
  15. .p2align 4,,15
  16. .weak _Z3fooIjEiv
  17. .type _Z3fooIjEiv, @function
  18. _Z3fooIjEiv:
  19. .LFB3:
  20. .cfi_startproc
  21. movl $42, %eax
  22. ret
  23. .cfi_endproc
  24. .LFE3:
  25. .size _Z3fooIjEiv, .-_Z3fooIjEiv
  26. .section .text.startup,"ax",@progbits
  27. .p2align 4,,15
  28. .globl main
  29. .type main, @function
  30. main:
  31. .LFB1:
  32. .cfi_startproc
  33. movl $_Z3fooIiEiv, %eax
  34. cmpq $_Z3fooIjEiv, %rax
  35. setne %al
  36. movzbl %al, %eax
  37. ret
  38. .cfi_endproc
  39. .LFE1:
  40. .size main, .-main
  41. .ident "GCC: (Ubuntu 4.6.0-3~ppa1) 4.6.1 20110409 (prerelease)"
  42. .section .note.GNU-stack,"",@progbits
  43.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.s: Assembler messages:
prog.s:34: Error: bad register name `%rax'
stdout
Standard output is empty