I'm trying to use the following ASM inline code in my C++ source, given for Visual Studio :
__asm {
mov ecx,target
}
where target is a void* pointer. I don't know how to convert this into GCC-compatible code. I know that GCC use synthax like :
asm (".intel_syntax noprefix");
asm ("mov ecx,target");
but obviously there's a problem with the variable in this situation. So, anyone could explain me how to use a pointer with inline ASM using GCC for Windows ?
Thanks for your help.