calling-convention
Should I prefer "default" calling convention over __fastcall when I don't really care of the calling convention?
We have a huge C++ codebase with lots of COM objects. Each function exposed to COM must have __stdcall calling convention (usually STDMETHODCALLTYPE macro) and so we have lots offunctions marked STDME[详细]
2023-03-02 03:58 分类:问答Contiguous memory guarantees with C++ function parameters
Appel [App02] very briefly mentions that C (and presumably C++) provide guarantees regarding the locations of actual parameters in contiguousmemory as opposed to registers when the address-of operator[详细]
2023-02-20 07:33 分类:问答C: Return value via stack/register question
I am new to C, and there is one thing I开发者_如何学Python can not understand. When function returns something that is not bigger than register -- my compiler puts it in EAX.[详细]
2023-02-18 02:32 分类:问答Delete call from call log after call end
I am new to Android development. I want to make a call to a number but I don\'t want to store the number in my Call log. Ho开发者_StackOverflow中文版w can I delete the number from call log after the c[详细]
2023-02-17 16:10 分类:问答How to declare an __stdcall function pointer
I tried this typedef void (* __stdcall MessageHandler)(const Task*); This compiles but gives me this warning (VS2003):[详细]
2023-02-16 13:06 分类:问答How do vararg functions find out the number of arguments in machine code?
How can variadic functions like printf find out the number of argu开发者_如何学编程ments they got?[详细]
2023-02-16 01:05 分类:问答Changing a C# delegate's calling convention to CDECL
I have had this problem with C# when I was using DotNet1.1 The problem is this. I have an unmanaged dll, which has a function which takes a function pointer (among other arguments). When I declare th[详细]
2023-02-14 07:00 分类:问答What does "cdecl" stand for?
Yes,I know that \"cdecl\" is the name of a prominent calling convention, so please don\'t 开发者_如何学Pythonexplain calling conventions to me. What I\'m asking is what the abbreviation (?) \"cdecl\"[详细]
2023-02-10 11:38 分类:问答Are call-by-value and pass-by-value synonymous?
I always thought call-by-value and pass-by-value were synonymous.However, I recently heard someone refer to them as if they开发者_StackOverflow社区 were different.Are they the same thing?[详细]
2023-02-10 11:05 分类:问答Calling convention for function returning struct
For the following C code: struct _AStruct { int a; int b; float c; float d; int e; }; typedef struct _AStruct AStruct;[详细]
2023-02-09 18:58 分类:问答