3 ms·
I wouldn't say so. When you're on assembly programs, you hold things like "register values" in your head as well as other low-level things. It's not only about
by zakirullin 3y ago
I wouldn't say so. When you're on assembly programs, you hold things like "register values" in your head as well as other low-level things. It's not only about abstractions and language features.
- YetAnotherNick 3y agoThere are much lower number of register values compared to number of variables any half complicated code has.
- whstl 3y agoAssembly uses more than registers. And unlike registers and memory addresses, you don't really have to juggle regular variables in your head unless the program has a lot of unnecessary mutability, or really bad variable names.
- ZoomZoomZoom 3y agox64 has 16 general-purpose registers. "Much lower" starts somewhere around a half. I say, touching 32 variables in a given scope is not "half complicated", it's sabotage.
- zakirullin 3y ago> number of variables any half complicated code has. It is not about sheer number of variables some code has. It's about how many variables we have to fit in our head in order to understand some flow or calculation.