fork download
  1. int main(void)
  2. {
  3. int foo = 10, bar = 15;
  4. __asm__ __volatile__("addl %%ebx,%%eax"
  5. :"=a"(foo)
  6. :"a"(foo), "b"(bar)
  7. );
  8. printf("foo+bar=%d\n", foo);
  9. return 0;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
cc1: warnings being treated as errors
prog.c: In function ‘main’:
prog.c:8: error: implicit declaration of function ‘printf’
prog.c:8: error: incompatible implicit declaration of built-in function ‘printf’
stdout
Standard output is empty