AccessD Posted September 21, 2006 Report Posted September 21, 2006 #include <stdio.h> main() { int a, b; a = b = 5; __asm__ __volatile__("addl %%ebx, %%eax" : "=eax" (a) : "eax" (a),"ebx" ( : "eax" ); printf("%d\n", a); } >gcc test.c test.c:6: error: impossible constraint in ‘asm’ что не так? пример из статьи, вроде должен работать.. может, какой заголовок нужен? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.