Re:Operation Costs in CPU Clock Cycles
by umanwizard on Friday November 11, 2016 @07:55PM
(#12935883)
Creating a stack frame is just updating a register and writing a couple of values to L1 cache.
[ Parent
| on HN ]
Re:Operation Costs in CPU Clock Cycles
by jheriko on Saturday November 12, 2016 @12:57PM
(#12939105)
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.