Hacker News new | ask | show | jobs
by MaxBarraclough 2207 days ago
> if you declare all your locals at the start of a function, chances are the compiler will check whether it can make some of them share memory, so you’d have to take that into account, too.

And that's ignoring registers. Not every local ever needs to reside in memory.