Re:Being Sneaky in C
by pcwalton on Saturday June 13, 2015 @01:30AM
(#9710006)
Compilers have been doing this for a long time. The optimizations that this enables are essential for performance. They shouldn't stop; if the spec prohibits it, the spec should change (and if it doesn't, the compilers should ignore the spec).
[ Parent
| on HN ]
Re:Being Sneaky in C
by TheLoneWolfling on Saturday June 13, 2015 @01:44AM
(#9710044)
Good to know about the first and last part.
And as for the second part... Meh. I don't see any optimizations that hard-coding calling something named "memcpy" (or whatever) does that cannot be enabled by looking at the actual code that gets linked. Albeit with more difficulty.