/*
* An example of using registers
*
* 使用寄存器
*/
#include
int main()
{
int data1 = 10;
int data2 = 20;
int result = 0;
__asm("imull %%edx, %%ecx\n\t"
"movl %%ecx, %%eax\n\t"
:"=a"(result)
: "d"(data1), "c"(data2));
printf("The result is %d\n", result);
return 0;
}