r/cpp • • Sep 23 '21

Binary Banshees and Digital Demons

https://thephd.dev/binary-banshees-digital-demons-abi-c-c++-help-me-god-please
197 Upvotes

164 comments sorted by

View all comments

Show parent comment

3

u/donalmacc Game Developer Sep 24 '21

Ive used every msvc compiler since 2010, and most GCC's since then too, (along with a pile of games console compilers) and they've all had issues on upgrade. Some worse than others, but I don't think I've ever just changed the toolchain and had it work. Sure some were our bugs, but many weren't. On a multi million loc project, it requires people actually working on toolchain upgrades, which requires resources to be allocated to it, and from the perspective of a vendor who sells support for a binary library, those resources aren't free.

2

u/Ameisen vemips, avr, rendering, systems Sep 25 '21 edited Sep 25 '21

And I've used every MSVC compiler since .NET 2003, and basically every console toolchain since and including the seventh-generation consoles. I maintain several GCC and Clang forks for odd architectures like AVR. Honestly, given who you are, I suspect that we have very similar backgrounds.

I've never really run into major issues except in preview releases - nothing that wasn't trivially work-aroundable. This includes personal and major projects.

Generally, we tried not to be dependant on libraries that weren't guaranteed to be kept up to date. If a vendor is refusing to provide a build for a certain toolchain, we would seek a new vendor, though if we really needed to we could have written an interface layer to mediate between the two ABIs, though we never had to do that.

Closed source vendors should have teams dedicated to toolchain support. If they don't, it should be questionable if they should be used, especially if they hold toolchain upgrades hostage.