Krister Walfridsson’s old blog

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

Saturday, January 26, 2019

Building GCC 1.27

›
GCC 1.27 was released in 1988 and is the first version of GCC supporting the x86 CPU. I thought it would be fun to make it work on my deskt...
1 comment:
Saturday, December 29, 2018

Commodore 64 programming

›
I have done some Commodore 64 programming over the holidays. The C64 is old , but I think there are things that can be learned from dealing...
Sunday, October 21, 2018

Optimization and performance measurement

›
The performance of programs depend surprisingly much on things that “should not” matter (such as the order files are passed to the linker )...
2 comments:
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:
‹
›
Home
View web version
Powered by Blogger.