fork download
  1. #include <cstdio>
  2.  
  3. int main()
  4. {
  5. int fizz = 3, buzz = 5;
  6.  
  7. __asm__ __volatile__("addl %%ebx,%%eax"
  8. :"=a"(fizz)
  9. :"a"(fizz), "b"(buzz)
  10. );
  11. printf("fizz+buzz=%d\n", fizz);
  12. return 0;
  13. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
fizz+buzz=8