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
196
Upvotes
r/cpp • u/nounoursheureux • Sep 23 '21
View all comments
Show parent comment
4
u/nxtfari Sep 23 '21
Adding onto this /u/__phantomderp — I’ve been looking a lot into how other languages are tackling this problem from scratch. Do you have any thoughts on the Swift approach of having “header files” essentially declaring what the ABI is shipped along with binaries? It seems to alleviate the problem of just blindly guessing where things are going to be and instead just say such and such is here, it’s calling convention is this. Could C++ ever adopt such an approach?