发布时间:2013-08-02 10:18:08
#include <stdio.h>int main() { int a = 10, b;__asm__("movl %1, %%eax\n\t""movl %%eax, %0\n\t":"=r"(b) /* output */:"r"(a) /* input */:"%eax" /* clobbered register */);printf("Result: %d, %d\n", a, b);return 0;}All summery:reference:.........【阅读全文】