3 ms·
Variables don't necessarily need to be somewhere in memory. Compilers absolutely can and will notice if you never take the address of a variable to do this opt
by caf 10y ago
Variables don't necessarily need to be somewhere in memory. Compilers absolutely can and will notice if you never take the address of a variable to do this optimisation - it's very common for local variables in C to be materialised nowhere but in a register.
- tacos 10y agoThank you. ANSI C defines a language containing 32 words. And one of them is "register."