Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  • Day 1 of Advent of Compiler Optimisations!

    Uncategorized aoco2025
    1
    0 Votes
    1 Posts
    0 Views
    Day 1 of Advent of Compiler Optimisations!Why do compilers love `xor eax, eax` for zeroing registers? It's brilliant: saves bytes compared to `mov eax, 0`, AND x86 CPUs recognise this "zeroing idiom" early in the pipelineโ€”breaking register dependencies and removing it from execution entirely. Even better: writing to `eax` zeroes the top 32 bits of `rax` for free, handling 64-bit longs in one instruction.Read more: https://xania.org/202512/01-xor-eax-eaxWatch: https://youtu.be/eLjZ48gqbyg#AoCO2025

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti