calling-convention
__cdecl and __declspec calling conventions confusion
I am writing a DLL fo开发者_运维知识库r a third party application. The main software engineer mentions that the application uses the __cdecl (/Gd) calling convention. That I need to make sure that I u[详细]
2023-03-24 11:14 分类:问答__cdecl or __stdcall on Windows?
I\'m currently developing a C++ library for Windows which will be distributed as a DLL. My goal is to maximize binary interoperability; more precisely, the functions in my DLL must be usable from code[详细]
2023-03-16 04:12 分类:问答Do function calls within a function's argument list deepen the stack?
When calling F(argument_expression), is argument_expression evaluated before pushing the stack for F?[详细]
2023-03-14 15:24 分类:问答Why doesn't the Windows x64 calling convention use XMM registers to pass more than 4 integer args?
The (Microsoft) x64 calling convention states: The arguments are passed in registers RCX, RDX, R8, and R9. If the arguments are float/double, they are passed in XMM0L, XMM1L, XMM2L, and XMM3L.[详细]
2023-03-11 22:35 分类:问答Why is %eax zeroed before a call to printf?
I am trying to pick up a little x86. I am compiling on a 64bit 开发者_高级运维mac with gcc -S -O0.[详细]
2023-03-09 19:04 分类:问答Is this interface binary compatible between MSVC and mingw?
I am working on a library that allows its users (other libraries residing in the same process) to exchange data buffers and streams. The library has to be usable from both MSVC and mingw code (more co[详细]
2023-03-07 19:27 分类:问答C (not C++) pass by value/reference interview question [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-03-06 17:21 分类:问答Is calling convention dealt by compiler or linker?
When we put _stdcall(the caller doesn\'t need to clear 开发者_StackOverflow社区the stack) in the function prototype,is it taken care of by the compiler or linker?Calling convention is how to call the[详细]
2023-03-03 18:06 分类:问答Win VS2008 calling convention: Delphi dll from c
From a c app (VS2008, Win), I call a function in a dll written 开发者_高级运维in Delphi in Borland. The function works, but after each call I get this error: “The value of ESP was not properly saved[详细]
2023-03-03 17:14 分类:问答Procedure Activation Time
Is procedure activation time a part of the compile time, whereby preparation for function calls is performed?开发者_StackOverflow社区[详细]
2023-03-03 01:35 分类:问答