For the C calling convention (__cdecl) and the Pascal calling convention (__stdcall) that's correct.Quote:
Originally posted by CornedBee
The return value of a function is usually in eax. (I think)
Printable View
For the C calling convention (__cdecl) and the Pascal calling convention (__stdcall) that's correct.Quote:
Originally posted by CornedBee
The return value of a function is usually in eax. (I think)
Which other conventions are used? For __fastcall (PASCAL using registers if possible) it is correct too...
I didn't think there were any others which were standard on x86 other than those three.
Of course on different architectures it's going to be different.
MSVC only has those three (I never used fastcall because it a) wasn't any faster, and b) was a tad irrelevant since the compiler can optimise all your inline function calls anyway apart from DLLs)
I don't know C so there's no reason to try and teach me anything about it.
That's irrelevant.Quote:
Originally posted by numtel
I don't know C so there's no reason to try and teach me anything about it.
You still need to know about calling conventions, whatever language you use.