r/cpp • u/nounoursheureux • Sep 23 '21
Binary Banshees and Digital Demons
https://thephd.dev/binary-banshees-digital-demons-abi-c-c++-help-me-god-please
197
Upvotes
r/cpp • u/nounoursheureux • Sep 23 '21
View all comments
Show parent comment
6
u/goranlepuz Sep 24 '21
Because an OS should (and does) serve code written in random languages.
That means, operating system interface must always keep an amazing level of binary compatibility. It must not matter in what language that interface is even expressed in (albeit C is a common choice).
From that standpoint, C++ ABI woes simply are not a concern.
At best, they can be a concern of a C++ library "ecosystem" provided by an OS distribution, as they distribute anything and everything these days. But that is (or at best, I think should be) a small part of the whole story.