Programming language failings [was Re: strangest systems I've sent email from]
db at db.net
Sat Apr 30 14:44:25 CDT 2016
On Sat, Apr 30, 2016 at 12:28:35PM -0700, Chris Hanson wrote:
> On Apr 30, 2016, at 11:43 AM, Diane Bruce <db at db.net> wrote:
> > We cannot use the same outdated ideas we used to use for 'C'
> > that we used 40 years ago today. Compilers have improved.
> > Know your tools. And that's all I have said.
> In support of this, I’d encourage everyone who works with C to read Chris Lattner’s “What Every C Programmer Should Know About Undefined Behavior” series from the LLVM blog:
Yes, it's an excellent series.
> C has fairly well-defined semantics, they just aren’t necessarily what you think they are, and optimizers are taking advantage of them (under the “as if” rule) such that a developer’s idea of what assembly a specific section of C code should generate is not all that accurate these days.
> -- Chris
- db at FreeBSD.org db at db.net http://www.db.net/~db
More information about the cctalk