Uncategorized

Category: Uncategorized

  • Image placeholder

    ·

    Compiler optimizations are Weird

    The compiler, an optimization beast. The luxury of “just let the compiler do it,” comes from decades of passed down knowledge. But beware. Just because compilers are good at there jobs, doesn’t mean programmers shouldn’t be aware of what they spit out. Let’s start by looking at the following code and generated assembly: Simple stuff…