4 ms·
C++ really needs an ABI standard. It would make builds and package management much easier.
by maxxxxx 9y ago
C++ really needs an ABI standard. It would make builds and package management much easier.
- gpderetta 9y agoIt is impossible to have a standard ABI for a language that is supposed to be compiled down to machine code and run as native executable. The ABI is tied to the OS and specific machine. At best you can have standardized machine specific ABIs. Which is exactly what we have.
- maxxxxx 9y agoMachine specific ABI would already be great. Whenever I need a new library it takes forever to figure out how to integrate it correctly and add to the build. From observation this also trips over most newbies who don't know all the subtleties.
- pjmlp 9y agoI doubt the OS and compiler vendors will ever agree on one. Right now the "best" solutions are COM (aka UWP) on Windows, and the C++ Itanium ABI description. Even C does not have one, just that most mix language ABI with OS ABI, which happen to be the same on OS written in C. If you pick something else, not written in C, for example IBM i, then the ABI is actually TIMI, the OS/400 bytecode format. MBIs, the binary format for modules, might be the answer but until then there are many issues to tackle and agree upon.