Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jandrese
on Nov 30, 2020
|
parent
|
context
|
favorite
| on:
How many registers does an x86-64 CPU have?
I still remember benchmarking the various optimization options in GCC and the only one that consistently and significantly improved performance on real code was -fomit-frame-pointer.
praptak
on Nov 30, 2020
|
next
[–]
It saves one push per function call, which probably helps more than freeing up the register.
jandrese
on Nov 30, 2020
|
parent
|
next
[–]
The improvement was dramatic. IIRC 20-25% faster code pretty much every time. Nothing else in the optimization set even came close.
mr_toad
on Nov 30, 2020
|
root
|
parent
|
next
[–]
Back in the days before on-chip caches register memory was vastly faster than main memory.
sroussey
on Nov 30, 2020
|
prev
[–]
My custom builds of MySQL and PHP back in the day did exactly that.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: