Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
School-Cotton
on Nov 12, 2016
|
parent
|
context
|
favorite
| on:
Operation Costs in CPU Clock Cycles
Creating a stack frame is just updating a register and writing a couple of values to L1 cache.
jheriko
on Nov 12, 2016
[–]
sometimes not even that. it might just update a single register and write nothing to cache or memory... and that cost might be hidden by out-of-order execution and the parallelism of different units on the CPU, making it effectively zero-cost.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: