2 ms·
For C++, the principle backing this is the as-if rule [0]. While compilers do optimize internal ABIs to some extend there is definitely still lots of room for i
by account42 4y ago
For C++, the principle backing this is the as-if rule [0]. While compilers do optimize internal ABIs to some extend there is definitely still lots of room for improvement. I think eventually internal function boundaries and data structures should/will eventually only be hints to the optimizer just like the register and inline keywords have lost their original strict meaning - but we are not anywhere close to that yet.
[0] https://en.cppreference.com/w/cpp/language/as_if https://en.cppreference.com/w/cpp/language/as_if
- moonchild 4y agoWhen I say 'principles justifying its existence', I mean 'why we should do it', not 'why we may do it'.