fork download
  1. .section .data
  2. hello: .ascii "Hello User"
  3. input: .ascii ""
  4.  
  5. .section .text
  6.  
  7. .global _start
  8. _start:
  9. mov $4, %eax
  10. mov $1, %ebx
  11. mov $hello, %ecx
  12. mov $10, %edx
  13. int $0x80
  14.  
  15. mov $3, %eax
  16. mov $0, %ebx
  17. mov $input, %ecx
  18. mov $10, %edx
  19. int $0x80
  20.  
  21. mov $4, %eax
  22. mov $1, %ebx
  23. mov $input, %ecx
  24. mov $10, %edx
  25. int $0x80
  26.  
  27. mov $1, %eax
  28. mov $0, %ebx
  29. int $0x80
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.s: Assembler messages:
prog.s:0: Warning: end of file not at end of a line; newline inserted
/home/tK1YWZ/ccMA9ln0.o: In function `_start':
(.text+0x0): multiple definition of `_start'
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crt1.o:(.text+0x0): first defined here
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
stdout
Standard output is empty