So I like the (Visual C only?) __asm {...} method of embedding asm in c code, but I want to switch to a free compiler like DevC++. I like most everything about DevC++ and was about to change but then I found out that DevC++ only supports asm(""); which is enough to make me stay with Visual C.
Example of my Visual C code:
__asm
{
mov eax, 4
mov ebx, 8
}
Example of valid DevC++ code (I think it is something like this):
asm("mov eax, 4");
asm("mov ebx, 8");
I think I read somewhere that __asm{} is the Intel way and asm(""); is the pre Intel way? So I think I can get my code converted, but there are a couple of hundred lines of it and how to call it might not be the only difference.
So, is there a fix/plugin for DevC++ to support __asm{}? Thanks.
Example of my Visual C code:
__asm
{
mov eax, 4
mov ebx, 8
}
Example of valid DevC++ code (I think it is something like this):
asm("mov eax, 4");
asm("mov ebx, 8");
I think I read somewhere that __asm{} is the Intel way and asm(""); is the pre Intel way? So I think I can get my code converted, but there are a couple of hundred lines of it and how to call it might not be the only difference.
So, is there a fix/plugin for DevC++ to support __asm{}? Thanks.
