• assembler
  • Unexpected stuff!

    Let’s have a look at this code:

    And let’s compile it with g++ using the flag -O3, what’s going to happen? Before answering, let’s have a look at the assembly, shall we?

    This is actually only a portion of the whole assembly, what I care to show you is the main loop and what’s […]

  • assembler
  • Almost useless knowledge

    Is almost useless because nobody is going to raise yours salary for that! Or maybe someone will?!? Let’s say we ignore all the benefits of all the optimizations our benevolent compiler is going to made on our code, and have a look at what happen when we execute some hundreds of thousands of times two very […]