Detailed Explanation of Calling Conventions in C/C++

Detailed Explanation of Calling Conventions in C/C++

In C/C++, a calling convention is a set of rules that defines how function parameters are passed, how the stack is maintained, and how return values are passed. This ensures that both the caller and the callee have a consistent understanding of the function call. Different calling conventions are suitable for different scenarios and primarily … Read more

Bridging Delphi and C: Practical Linking of C Object Files (Part 2)

Bridging Delphi and C: Practical Linking of C Object Files (Part 1)The main content of this article is as follows: Object File Compatibility Testing Limitations of Older Delphi Versions Library Files Calling Conventions In general, C language generates object files, which are then linked into executable programs. On 32-bit Windows systems, these files typically use … Read more

Day 66: ABI Compatibility in C Language

Day 66: ABI Compatibility in C Language

Day 66: ABI Compatibility in C Language In the previous lecture, we analyzed the issues and best practices of dynamic loading libraries (such as dlopen), including the dynamic loading process, common pitfalls, and safe coding paradigms. 1. Step-by-step Explanation of the Theme Principles and Details ABI (Application Binary Interface) determines how different binary modules (such … Read more