ES version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
50% Positive
Analyzed from 77 words in the discussion.
Trending Topics
#register#registers#allocator#compiler#rcc#stack#still#done#cheaper#fixed

Discussion (1 Comments)Read Original on HackerNews
The register allocator is a simple first-fit bitmask with no spilling to stack except for the two predefined spill slots. Only if all 8 registers are in use, it spills the additional registers on the stack. What they call guest registers. No SSA and no BB needed. No crazy mem2reg or graph-coloring. Only once per function.
Only for very big functions one register is spilled, usually just rsi.
Benchmarks: