Skip to content

Tag Archives: optimisation

Code optimisation tips from SE.

16-Apr-14

Some nice general code optimisations tips from SE. http://stackoverflow.com/questions/926266/performance-optimization-strategies-of-last-resort/927773#927773 http://stackoverflow.com/questions/375913/what-can-i-use-to-profile-c-code-in-linux/378024#378024

Links dump for GCC optimization options.

18-Feb-14

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.

17-Feb-14

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: