Krister Walfridsson’s old blog

Random thoughts on programming languages, compilers, operating systems, etc.

Saturday, August 11, 2018

Inlining and microbenchmarking

›
Inlining is important for C++ performance, but the compiler must be careful not to increase the code size too much. GCC’s inlining process ...
1 comment:
Saturday, July 28, 2018

Don’t trust quick-bench results you see on the internet

›
It is easy to use quick-bench to benchmark small C++ functions, but it is hard to ensure they are measuring what is intended. Take this b...
3 comments:
Monday, June 25, 2018

Useful GCC address sanitizer checks not enabled by default

›
Some useful address sanitizer checks are disabled by default because they are relatively expensive (or, as for the std::vector checking, n...
2 comments:
Sunday, June 10, 2018

On an example from “What Else Has My Compiler Done For Me Lately?”

›
One of the examples in Matt Godbolt’s C++Now 2018 talk “ What Else Has My Compiler Done For Me Lately? ” is the function void maxArray ( ...
1 comment:
Thursday, April 12, 2018

Compilation time – -std=c++98 vs. -std=c++11

›
I saw on twitter that it takes more than twice as much time compiling the Ogre graphics engine using GCC than when using Clang. My experi...
3 comments:
Saturday, March 3, 2018

Detecting incorrect C++ STL usage

›
The GCC and LLVM sanitizers are great for finding problems in C++ code, but they do not detect problems with incorrect STL usage. For examp...
1 comment:
Sunday, February 4, 2018

GCC command options for debugging – -Og and -g3

›
I listened to a recent CppCast episode where Balázs Török talked about game development and mentioned that C++ abstractions make the code ...
Sunday, January 21, 2018

GCC back end performance tuning

›
This is part six of a series “ Writing a GCC back end ”. Cost model – TARGET_RTX_COSTS The compiler often has different options for ho...
1 comment:
‹
›
Home
View web version
Powered by Blogger.