Tag Archives: code-gen

Add a const here, delete a const there…

Update, February 2019: Two years later the VC++ bug I reported here still exists, even in VS 2019 preview. However Chromium no longer builds with VC++ so I’m reverting the changes where I deleted const in order to make some … Continue reading

Posted in Performance, Programming, Visual Studio | Tagged , , | 27 Comments

Zeroing Memory is Hard (VC++ 2015 arrays)

Quick, what’s the difference between these two C/C++ definitions of initialized local variables? char buffer[32] = { 0 };char buffer[32] = {}; One difference is that the first is legal in C and C++, whereas the second is only legal … Continue reading

Posted in Performance, Programming, Visual Studio | Tagged , , | 23 Comments