Categories
c++ compiler-optimization cpu-architecture gcc optimization

gcc optimization flag -O3 makes code slower than -O2

Categories
compiler-optimization llvm-codegen reference rust

Why does the Rust compiler not optimize code assuming that two mutable references cannot alias?

Categories
c compiler-optimization debug-mode loops optimization

C loop optimization help for final assignment (with compiler optimization disabled)

Categories
c compiler-optimization performance shift unions

Is a union more efficient than a shift on modern compilers?

Categories
c c++ compiler-optimization performance

Why do I have to turn on optimization in g++ for simple array access?

Categories
c c++ compiler-optimization loop-unrolling performance

How do optimizing compilers decide when and how much to unroll a loop?

Categories
assembly c compiler-optimization gcc x86-64

Why does compiler generate additional sqrts in the compiled assembly code

Categories
c clang compiler-optimization

In clang, how do you use per-function optimization attributes?

Categories
c c++ compiler-optimization gcc gcc-warning

GCC -Wuninitialized / -Wmaybe-uninitialized issues

Categories
c# compiler-optimization java performance string

What is the performance cost of assigning a single string value using +’s