-
Recent Posts
Categories
- AltDevBlogADay
- Bugs
- Chromium
- Code analysis
- Code Reliability
- Commuting
- Computers and Internet
- Debugging
- Documentation
- Drinks
- Environment
- Floating Point
- Fractals
- Fun
- Gaming
- Investigative Reporting
- Linux
- Math
- memory
- metric
- Performance
- Programming
- Quadratic
- Rants
- Security
- Symbols
- Travel
- uiforetw
- Uncategorized
- Unicycling
- Visual Studio
- WLPG
- Xbox 360
- xperf
Meta
Tag Archives: VC++
Delete an inline function, save 794 kB
In the previous episode of “Simple Changes to Shrink Chrome” I discussed how deleting ‘const’ from a few key locations could lead to dramatic size savings, due to a VC++ compiler quirk. In this episode I’ll show how deleting an … Continue reading
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
Programming is Puzzles
When I’m describing what I do for a living to non-programmers I sometimes say that I solve puzzles. I solve fascinating puzzles that are different every day, and there’s no answer key, and very often nobody else knows the solution. … Continue reading
Posted in Investigative Reporting, Performance, Programming, Visual Studio
Tagged fastlink, linking, VC++, visual studio
11 Comments
Make VC++ Compiles Fast Through Parallel Compilation
The free lunch is over and our CPUs are not getting any faster so if you want faster builds then you have to do parallel builds. Visual Studio supports parallel compilation but it is poorly understood and often not even … Continue reading
Posted in Performance, Visual Studio, xperf
Tagged cl.exe, ETW, VC++, visual studio, xperf
50 Comments
How to Report a VC++ Code-Gen Bug
My coworkers recently found a bug in the x64 code generated by Visual C++. This bug exists in VC++ 2010 to VC++ 2013 RC. We put in a workaround (the traditional one of disabling optimizations for the afflicted function) and … Continue reading
Posted in Bugs, Investigative Reporting, Programming, Visual Studio
Tagged compiler bugs, VC++, visual studio
10 Comments
Debugging Optimized Code–New in Visual Studio 2012
For years (decades?) one of the most requested features in Visual C++ has been better support for debugging optimized code. Visual Studio’s debug information is so limited that in a program that consists just of main(argc, argv) the VS debugger … Continue reading
Posted in Programming, Symbols
Tagged debugging, optimized debuggin, VC++, VC++ 2012, visual studio, VS 2012
35 Comments
Two Years (and Thousands of Bugs) of Static Analysis
I’ve been running static code analysis on four large code bases for over two years now. After the initial work of looking through all of the warnings and fixing the serious bugs I put the projects into code analysis maintenance … Continue reading
Posted in Code analysis, Code Reliability, Programming, Visual Studio
Tagged /analyze, clang, VC++, visual studio
22 Comments
Another Bug in Your Bug (Finder): __offsetof
Last month I posted about a crashing bug in Visual Studio 2012’s static code analysis feature. The irony was delicious. Yesterday I found another bug in the same feature. This one isn’t quite as dramatic, but I found it amusing, … Continue reading
Posted in Code analysis, Code Reliability, Programming, Visual Studio
Tagged /analyze, sizeof, size_t, VC++, visual studio, __offsetof
2 Comments
Visual C++ Debug Builds–”Fast Checks” Cause 5x Slowdowns
Introduction Visual Studio’s default Debug builds run painfully slowly. With one small change to your compile settings you may find that your Debug builds run up to five times faster. Update: the situation with Visual C++ 2013 is fundamentally unchanged. … Continue reading