Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
WalterBright
on Feb 21, 2017
|
parent
|
context
|
favorite
| on:
How do compilers optimize divisions?
Inlining makes for better register allocation :-)
dan00
on Feb 21, 2017
[–]
Because you don't need registers for the function call ceremony?
benchaney
on Feb 21, 2017
|
parent
|
next
[–]
Yes, and because you don't have to spill the arguments to the stack. Also, you optimize across the function call boundary.
WalterBright
on Feb 22, 2017
|
parent
|
prev
[–]
Because you can allocate registers in a way that is particular to a specific call's context, rather than in the generic context of a called function.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: