| ||||||||||
Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
似乎不能内嵌汇编#include<stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); asm ("\ movl %1, %%eax;\ movl %2, %%ebx;\ add %%eax, %%ebx;\ movl %%ebx, %0" :"=r"(a) :"r"(a),"r"(b) :"%eax","%ebx" ); printf("%d\n",a); return 0; } 得了个CE |-.- Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator