Skip to content

Tag Archives: compiler options

Links dump for GCC optimization options.


Code optimization by using GCC options is the oldest trick programmer’s fallback to whenever the program size or speed improvements are expected. I was also in search of some easy gains in speed & size. Hence started the research to understand the various GCC options for compile time optimizations.

Adding compiler flags to existing CMake flags.


I have been checking out various means to add compiler options while using the CMake build system. This was not so obvious to me when going through all the .cmake files in my huge project. So after searching a bit the following is the way to add custom compiler flags to cmake builds: