Krister Walfridsson’s old blog

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

Wednesday, October 20, 2021

This blog has moved

›
I have started blogging again! But I am too annoyed at Blogger, so the new posts will be published in my new blog: https://kristerw.github.i...
Sunday, February 2, 2020

Watching for software inefficiencies with Valgrind

›
Software inefficiencies often show up as wasteful memory operations, and many research tools can detect various cases of this. One such too...
1 comment:
Sunday, April 28, 2019

How LLVM optimizes power sums

›
LLVM optimizes power sums, such as int sum(int count) { int result = 0; for (int j = 0; j < count; ++j) result += j*j; ret...
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:
›
Home
View web version
Powered by Blogger.