No, that's a common misconception. It's mostly sloppiness, along with a small but nonzero amount of willful wrongness.
-
-
I have seen CC's which would fail to optimize this, for targets with neither a "SHL n" op, nor a "MUL" op, so both end up as runtime calls.
-
If this optimization or lack thereof happens at the target backend level rather than on high-level IR, the compiler is hopelessly broken.
-
I am thinking it is going pretty ok if the CC's work and accept modern'ish C syntax (luckily K&R only CC's are pretty much dead now...).
-
You're a decade or two late on these discussions...
-
old stuff lingers for a while, it seems only pretty recent that using GCC/etc became semi-universal (vs LCC variants and one-off compilers).
-
actually, FWIW, in a class I am taking there are still some machines around using orange-on-black CRTs and floppy drives. epic new tech...
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.