fork(1) download
  1. # int main()
  2. # {
  3.  
  4. # This file is in AT&T syntax - see http://w...content-available-to-author-only...u.dk/Courses/DM18/Litteratur/IntelnATT.htm
  5. # and http://e...content-available-to-author-only...a.org/wiki/X86_assembly_language#Syntax. Both gdb and objdump produce
  6. # AT&T syntax by default.
  7. MOV $17984,%ebx
  8. MOV $7205,%eax
  9. MOV $1429,%ecx
  10. CMP %eax,%ebx
  11. JL L1
  12. JMP L2
  13. L1:
  14. IMUL %eax,%ebx
  15. ADD %eax,%ebx
  16. MOV %ebx,%eax
  17. SUB %ecx,%eax
  18. JMP L3
  19. L2:
  20. IMUL %eax,%ebx
  21. SUB %eax,%ebx
  22. MOV %ebx,%eax
  23. ADD %ecx,%eax
  24. L3:
  25. NOPe
  26.  
  27. xor %eax, %eax # return 0;
  28. ret
  29. # }
  30.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.asm:1: error: label or instruction expected at start of line
prog.asm:2: error: label or instruction expected at start of line
prog.asm:4: error: label or instruction expected at start of line
AT&T syntax by default.:1: error: expression syntax error
AT&T syntax by default.:2: error: expression syntax error
AT&T syntax by default.:3: error: expression syntax error
AT&T syntax by default.:4: error: expression syntax error
AT&T syntax by default.:8: error: expression syntax error
AT&T syntax by default.:9: error: expression syntax error
AT&T syntax by default.:10: error: expression syntax error
AT&T syntax by default.:11: error: expression syntax error
AT&T syntax by default.:14: error: expression syntax error
AT&T syntax by default.:15: error: expression syntax error
AT&T syntax by default.:16: error: expression syntax error
AT&T syntax by default.:17: error: expression syntax error
AT&T syntax by default.:21: error: expression syntax error
AT&T syntax by default.:23: error: label or instruction expected at start of line
ld: cannot find prog.o: No such file or directory
stdout
Standard output is empty