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.