Get the latest tech news

Register deprivation: spills and runtime under forced register scarcity


We compiled nine small kernels while progressively reserving registers with gcc -ffixed-<reg>, then measured spills and runtime on one machine. Reserving registers reliably increases spills, but the static spill count is a weak predictor of the runtime cost, and one kernel gains 23 spills with no slowdown at all.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of runtime

runtime

Photo of spills

spills

Photo of Register deprivation

Register deprivation

Related news:

News photo

Moonstone: Modern, cross-platform Lua runtime and package manager written in Zig

News photo

Understanding the Go Runtime: Profiling

News photo

We put a Redis server inside our runtime