Thinking Low Level, Writing High Level
summary
Examines why high-level code hides costly platform realities and gives concrete knobs: x86 SysV passes up to six 64-bit scalar arguments in registers, floats use eight SSE regs, anything beyond uses stack memory and hurts latency; APX and upcoming 32-register x86 reduce memory ops and can cut instruction-level memory reads by noticeable percentages; stack push/pop often stay in microarchitectural buffers until another core probes the address; microbenchmarks frequently mislead, so measure fleet-wide and redesign data layout, argument packing, and ABI only when profiling shows register vs memory bottlenecks.
AI-written summary · about
