Hi everybody,
I want to call this function:
Code:
in here:
Code:
But i taken this error:
Code:
I looked and made like in here: http://webcache.googleusercontent.com/search?q=cache:AVYvydO-m1oJ:www.cs.dartmouth.edu/~sergey/cs108/2009/gcc-inline-asm.pdf+&cd=13&hl=tr&ct=clnk&gl=tr
Part: 4.1 Extended asm, an introduction.
How can i call this function?I am using dev-c++.And i want to learn this in gcc-inline-asm.Thank you for your helps
I want to call this function:
Code:
int x86asm_add(int a,int b)
{asm(
"addl %%ebx,%%eax"
:"=a"(a)
:"a"(a),"b"(b)
);
}
in here:
Code:
int x86asm_add_call(int a,int b)
{
asm("x86asm_add %1,%2,%0" : "=r"(a):"r"(a),"r"(b)
);
}
But i taken this error:
Code:
`x86asm_add %eax,%edx,%eax'
I looked and made like in here: http://webcache.googleusercontent.com/search?q=cache:AVYvydO-m1oJ:www.cs.dartmouth.edu/~sergey/cs108/2009/gcc-inline-asm.pdf+&cd=13&hl=tr&ct=clnk&gl=tr
Part: 4.1 Extended asm, an introduction.
How can i call this function?I am using dev-c++.And i want to learn this in gcc-inline-asm.Thank you for your helps