Call foreign member functions using Panama
Pedro Lamarão
pedro.lamarao at prodist.com.br
Tue Nov 29 13:43:54 UTC 2022
Em ter., 29 de nov. de 2022 às 10:26, Samuel Audet <samuel.audet at gmail.com>
escreveu:
> My guess is when compatibility gets close enough to 100%, Microsoft will
> start deprecating their cl.exe tool and transition fully to clang-cl. At
> that point, I don't see many C++ compilers choosing to remain
> incompatible with Clang and LLVM. It's going to be just like OpenJDK:
> There are still some Java implementations that are not compatible with
> OpenJDK, but they are rather hard to find and don't have a great impact
> on the community.
>
In the context of calling conventions, there is really no moving target.
Microsoft''s runtime ABI for Windows and the "Itanium C++ ABI" for
everybody else are very stable.
It is important to not mix the compatibility risk of the "runtime ABI"
(where things like calling conventions are defined) and the "library ABI"
(where things like std::string are defined).
Also, there are basically only these two.
Implementing this over Panama would be a respectable project, but it is not
the monster it may seem to be.
If one would implement the "Itanium C++ ABI", one would support a *lot* of
real world applications.
Reference: https://itanium-cxx-abi.github.io/cxx-abi/abi.html
--
Pedro Lamarão
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20221129/6f06d55c/attachment-0001.htm>
More information about the panama-dev
mailing list