3 ms·
You’d think that C could do any appropriate optimizations as well as D, since the C compiler (in theory) should know whether there can exist (in any given progr
by teddyh 6y ago
You’d think that C could do any appropriate optimizations as well as D, since the C compiler (in theory) should know whether there can exist (in any given program) any writeable pointers to the same value or if there only can exist pointers to const.
- innocenat 6y agoPointer arithmetic would surely make all value mutable. Or even simple array access.
- marton78 6y agoOnly inside the same compilation unit.
- ygra 6y agoDoing it across the whole compilation requires LTCG, but that does exist as well. It just makes incremental builds a pain with large binaries.