|
From: Klakier <kal...@in...> - 2002-06-28 11:42:26
|
Hi
Could somebody help me to translate below Visual Studio's style asembler
line to GCC standard?
void Proc ()
{
unsigned Result;
__asm
{
...
mov dword ptr [Result] , eax // setting result
}
return Result
}
I read manual and they advice to translate it this way:
void Proc ()
{
unsigned Result;
asm ("....");
asm ("movl %eax, %0" : "=r" (Wynik));
return Result;
}
How should I do this?
Marcin Kacperek
-----------------------------------------------------------------------
Polska-Niemcy: Znowu napiete stosunki? >>> http://link.interia.pl/f15fb
|