Recent Posts

profiling c++ under linux using gprof

less than 1 minute read

In-depth tutorial: https://www.thegeekstuff.com/2012/08/gprof-tutorial/ Summary: Compile with -pg compiler flag (gcc/clang). Executing binary gives gmon.o...

terminator: useful multi-window terminal emulator

less than 1 minute read

one can set terminator up to start with pre-defined layout and terminals. important distinction: layout defines where and how a window should be setup and a...

fast linker: mold

less than 1 minute read

Install mold on your linux box. Enable mold for gcc/clang by supplying -fuse-ld=mold, e.g. clang -fuse-ld=mold a.cpp Enable in CMake by supplying argu...

Boost Test + QuantLib

1 minute read

QuantLib has unit tests built in which are based on Boost Test. How to build: $ cmake --build build --preset=MyPreset$ cmake --build build/MyPreset --targ...

CMake presets

less than 1 minute read

CMake can group settings together via presets. Usage: $ cmake --presets=<PRESET>autocomplete with <tab> key See $<ROOT>/CMakePresets.j...