fork download
  1. #include <iostream>
  2.  
  3. #define MY_COPY(TO, FROM) do { std::cout << ("movl " #FROM ", %eax\nmovl %eax, " #TO); } while (0)
  4.  
  5. int main()
  6. {
  7. MY_COPY(%edx, %ecx);
  8. return 0;
  9. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
movl %ecx, %eax
movl %eax, %edx