Comment on Correctly implementing a spinlock in Modern C++parentComments−duped5yBecause we live in a society and not every program can live it's life without affecting others−gumby5yI write embedded code that lives in the woods like a hermit.−BobbyJo5yFavor local variables over global variables where able.−duped5yRAM is a global variable−BobbyJo5yI never leave L1.−gumby5yI did once write a small program for the PDP-10 that ran entirely in the registers (which happened also to be addressable as the first 18 words of memory)−tomcam5yWhat did it do?−gumby5ySomething dull like compute fibbonaci numbers. Though there was a legit reason to do this: IIRC this procedure was how you bootstrapped the machine.−DSingularity5yI never leave the trace cache. FEEB.
Comments
Because we live in a society and not every program can live it's life without affecting others
I write embedded code that lives in the woods like a hermit.
Favor local variables over global variables where able.
RAM is a global variable
I never leave L1.
I did once write a small program for the PDP-10 that ran entirely in the registers (which happened also to be addressable as the first 18 words of memory)
What did it do?
Something dull like compute fibbonaci numbers. Though there was a legit reason to do this: IIRC this procedure was how you bootstrapped the machine.
I never leave the trace cache. FEEB.