Search code examples
Can the compiler choose memory ordering for atomic operations?...


cthread-safetyatomiccompiler-optimizationmemory-barriers

Read More
Is it possible to eliminate the this pointer in a singleton?...


c++oopsingletoncompiler-optimizationcalling-convention

Read More
Why don't C overflow checks use CPU flags?...


cassemblycompiler-optimizationinteger-overflow

Read More
Why do GCC and Clang fail to auto-vectorize simple loop?...


c++gccclangvectorizationcompiler-optimization

Read More
What C/C++ compiler can use push pop instructions for creating local variables, instead of just incr...


c++assemblyx86compiler-optimizationmicro-optimization

Read More
How can modern compiler optimization convert recursion into returning a constant?...


c++recursiongccg++compiler-optimization

Read More
Why does the compiler give strncpy 'stringop-truncation' warning only with -O2?...


compiler-optimizationcompiler-warningsavr-gcc

Read More
How to call inline functions by using dl library?...


c++linuxshared-librariescompiler-optimization

Read More
Is Option compiled to a runtime check or an instruction jump?...


rustcompiler-optimization

Read More
Does excessive use of [[likely]] and [[unlikely]] really degrade program performance in C++?...


c++c++20compiler-optimizationbranch-predictionlikely-unlikely

Read More
Why would you NOT want the compiler to optimize your code?...


compiler-optimization

Read More
Is it possible to tell the branch predictor how likely it is to follow the branch?...


cgccx86compiler-optimizationmicro-optimization

Read More
Why does modulo in a loop code result in so different assembly in C (compiled by GCC) and in Rust (c...


cassemblyrustx86-64compiler-optimization

Read More
Can the compiler elide a const local copy of const& vector parameter?...


c++exceptionmemory-managementimmutabilitycompiler-optimization

Read More
Why does MSVC AVX2 /FP:strict sometimes generate inferior (slower) code to SSE2?...


visual-c++x86benchmarkingcompiler-optimizationpolynomials

Read More
How is rust able to optimize Option::is_some_and so effectively?...


rustcode-generationcompiler-optimization

Read More
Will the compiler know to skip this loop?...


c++loopscompilationcompiler-optimization

Read More
Does GCC optimize array access with __int128 indexes incorrectly?...


c++gcccompiler-optimizationcompiler-bugint128

Read More
Why are [[no_unique_address]] members not transparently replaceable?...


c++compiler-optimizationstandardslifetimeimplicit-lifetime

Read More
GCC switch statements do not simplify on identical handling...


c++gccswitch-statementg++compiler-optimization

Read More
How is this string in an array represented in assembly when a C program is compiled using the gcc -S...


cassemblygccx86-64compiler-optimization

Read More
Why is empty base class optimization (EBCO) not working in MSVC?...


c++visual-c++compiler-optimizationempty-class

Read More
How does GCC (not clang) make this optimization deciding that a store to one struct member couldn&#3...


c++gccclangcompiler-optimizationstrict-aliasing

Read More
Can I tell my compiler that a floating-point value is not NaN nor +/-infinity?...


coptimizationfloating-pointnancompiler-optimization

Read More
Does C++23 guarantee std::launder can be omitted in placement new scenarios?...


c++compiler-optimizationundefined-behaviorc++23stdlaunder

Read More
Is Clang really this smart?...


c++c++11clangllvmcompiler-optimization

Read More
Why do modern compilers assume malloc never fails?...


c++gccclangmalloccompiler-optimization

Read More
Why can the Rust compiler not optimize Option::take and an "if let" if you print the value...


rustcompiler-optimization

Read More
Why does GCC or Clang not optimise reciprocal to 1 instruction when using fast-math...


c++ssecompiler-optimizationsimdfast-math

Read More
C/C++ Indeterminate Values: Compiler optimization gives different output (example)...


c++coptimizationcompilationcompiler-optimization

Read More
BackNext