Calling Conventions
Is it possible to make your own calling conventions? If so, how do you do it? In C++ that is.
[edited by - dudemiester on November 1, 2002 4:25:18 PM]
You''d have to hard code (in assembly) the calling of each function. Also, because of the complexity of C++, each compiler has a different ABI and name mangling scheme. So, you''ll need to find a library to demangle it (GCC comes with libgcc, for example). If you fail to locate one supporting your tools, you''ll have to read a specification of this for your tools. This will most likely also change with each revision of the product.
You can save yourself the de-mangling part by declaring your functions as extern "C".
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement