Re: calling convention stdcalll and cdecl call
- From: "Alex Blekhman" <tkfx.REMOVE@xxxxxxxxx>
- Date: Fri, 18 Jul 2008 16:19:50 +0300
"Alf P. Steinbach" wrote:
As you can see at the assembly language level [...] there's no
problem. [...] so it's just a tool problem, and for that matter,
also library problem, that there's no support.
I think there is a problem at the assembly language level.
Actually, it is the __stdcall calling convention itself is a
problem.
You have to pass a number of actual parameters to the collee.
Otherwise there is no way to clean the stack from within a
function. This is inherent limitation of __stdcall calling
convention no matter what tool or library you may use. __cdecl
delegates this problem to the caller, so there is nothing to wory
about for the function itself.
Alex
.
- Follow-Ups:
- Re: calling convention stdcalll and cdecl call
- From: Alf P. Steinbach
- Re: calling convention stdcalll and cdecl call
- References:
- Re: calling convention stdcalll and cdecl call
- From: Igor Tandetnik
- Re: calling convention stdcalll and cdecl call
- From: Alf P. Steinbach
- Re: calling convention stdcalll and cdecl call
- Prev by Date: Re: calling convention stdcalll and cdecl call
- Next by Date: Re: Downloading files from Network shares using BITS
- Previous by thread: Re: calling convention stdcalll and cdecl call
- Next by thread: Re: calling convention stdcalll and cdecl call
- Index(es):