- Modern C++:Efficient and Scalable Application Development
- Richard Grimes Marius Bancila
- 84字
- 2021-06-10 18:28:06
Specifying calling conventions
When your code uses your own functions, you do not need to pay any attention to calling conventions because the compiler will make sure the appropriate convention is used. However, if you are writing library code that can be used by other C++ compilers, or even by other languages, then the calling convention becomes important. Since this book is not about interoperable code we won't go into much depth, but instead will look at two aspects: function naming and stack maintenance.