Link Time Optimizations: New Way to Do Compiler Optimizations
Published on: 2025-06-26 10:48:22
UPCOMING VECTORIZATION WORKSHOPS
AVX Vectorization Workshop: 4 half days, May 26th to May 29th,
11 AM – 3 PM (US East Coast)
8 AM – 12 PM (US West Coast)
5 PM – 9 PM CET (Europe)
NEON Vectorization Workshop: TBD, send e-mail to [email protected] to express interest
More info…
Early in their career every C/C++ developer has had an eureka moment: the discovery of optimization options in their compiler. A discovery that there is GCC compiler offers -O0 optimization lever for regular debugging and -O3 for fast release code will be one of the moment I will never forget. I just needed to compile my program with -O3 and everything would run faster without any effort on my side.
Many years have passed since and I believe everyone compiles their code in the similar way: we compile our .c or .cpp files using a compiler, with a certain optimization option (-O0 or O3) to get object files (.o). Then linker takes all our object files and merges them into one big executable or a library.
... Read full article.