News for hackers. Stuff that matters.
Re:How to make smaller C and C++ binaries by maccard on Sunday May 07, 2023 @05:21PM (#35855726)
> 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.

Re:How to make smaller C and C++ binaries by maccard on Monday May 08, 2023 @05:51AM (#35859827)
We target both x64 and arm, and I'm not aware of any restrictions we place on STL usage. That said, we don't target embedded devices, so your world is _definitely_ different to mine!