compiler-optimization
How do optimizing compilers decide when and how much to unroll a loop?
When a compiler performs a loop-unroll optimization, how does it determined by which factor to unroll the loop or whether to unroll the whole loop? Since this is a space-performance trade-off, on aver[详细]
2023-04-11 06:56 分类:问答Allowed C# Compiler optimization on local variables and refetching value from memory
EDIT: I am asking what happens when two threads concurrently access the same data without proper synchronization (before this edit, that point was not expressed clearly).[详细]
2023-04-10 16:57 分类:问答Can compiler optimizations, like ghc -O2, change the order (time or storage) of a program?
I\'ve got the feeling that the answer is yes, and that\'s not restricted to Haskell.For example, tail-call optimization changes memory requirements from O(n) to O(l), right?[详细]
2023-04-10 12:48 分类:问答Which one is faster ? Function call or Conditional if Statement?
Please consider the branch prediction too before answering this question. I have some scenarios where i can replace a conditional statement with a call to a function with the help of function pointer[详细]
2023-04-09 13:55 分类:问答compiler-optimization for numerical stability
do GCC or similar compilers perform optimizations that are aimed at improving the numerical stability of floating-point operations.[详细]
2023-04-08 02:43 分类:问答Getting an optimization report from GCC
I would like to know if there is an option I can use with GCC to get a detailed report on the optimization actually chosen and performed by the compiler. This is possible with the Intel C compiler usi[详细]
2023-04-08 02:38 分类:问答How do I convince the JVM to inline an interface method?
I have an class hierarchy rooted in an interface and implemented with an abstract base class. It something looks like this:[详细]
2023-04-07 16:02 分类:问答Is accessing volatile local variables not accessed from outside the function observable behavior in C++?
In C++03 Standard observabl开发者_StackOverflow社区e behavior (1.9/6) includes reading and writing volatile data. Now I have this code:[详细]
2023-04-07 06:49 分类:问答In C++ if a pointer is returned and immediately dereferenced, will the two operations be optimized away?
In C++ if I get and return the address of a variable and the caller then immediately dereferences it, will the compiler reliably optimize out the two operations?[详细]
2023-04-06 22:48 分类:问答How much instruction-level optimisation can a JIT apply?
To what extent can a JIT replace platform independent code with processor-specific machine instructions?[详细]
2023-04-05 02:09 分类:问答