LogPass provides compiler wrapper and pass library that logs function traces
You can install dependencies on Debian/Ubuntu with following command:
sudo apt install clang-16 llvm-16-dev cmake makeTo build pass library write:
mkdir build
cd build
cmake .. -DCMAKE_C_COMPILER=clang-16 -DCMAKE_CXX_COMPILER=clang++-16
make -jUse loggercc as C-compiler and loggercxx as C++-compiler:
CC=/path/to/loggercc
CXX=/path/to/loggercxx
cmake / make / ninja / ...
./a.outYou'll receive logger.log file with function trace.