> For example, I tend to avoid the STL because of how inconsistent it is across the various compilers in terms of performance and behavior.
What are your targets? This was my experience 10 years ago, but today with modern (last 5-6 years) MSVC, GCC and Clang (and even on modern Xbox and Playstation toolchains) my experience has been that it's close enough.
Re:How to make smaller C and C++ binaries
by kwant_kiddo on Sunday May 07, 2023 @06:01PM
(#35856037)
Even just between x86 and ARM there can be a big enough difference in performance s.t your product straight up does not work on one platform, and that is with the current gcc toolchain.
I have been working with small embedded devices so this may be an outlier here compared to the rest of the C/C++ world.
If people were to listen to your advice, no one would ever post any kind of article on how to achieve certain specific goals, all we'd ever discuss are very generic topics and constantly rehash the same content over and over again. It's good to be able to learn how certain developers manage to accomplish various goals without having someone come along and call that advice terrible.