fork download
  1. #cpuid.s Sample program to extract the processor Vendor ID
  2. .section .data
  3. output:
  4. .ascii "The processor Vendor ID is 'xxxxxxxxxxxx'\n"
  5. .section .text
  6. .globl _start
  7. _start:
  8. movl $0, %eax
  9. cpuid
  10. movl $output, %edi
  11. movl %ebx, 28(%edi)
  12. movl %edx, 32(%edi)
  13. movl %ecx, 36(%edi)
  14. movl $4, %eax
  15. movl $1, %ebx
  16. movl $output, %ecx
  17. movl $42, %edx
  18. int $0x80
  19. movl $1, %eax
  20. movl $0, %ebx
  21. 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/iMIBl2/ccqTkYgd.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