News for hackers. Stuff that matters.
Re:The Problem with Friendly C by zvrba on Thursday December 24, 2015 @04:56AM (#10787703)
> I'm not sure that's the best example. In that case, the knowledge that the 'array' global never has its address taken allows you to perform the optimization.

Separate translation units. For this to work, you'd need to postpone all optimizations to the link stage. Even then you're not safe, because you may be producing a dynamic library and the program loading it can take the address of an object by dlsym().

There are no comments on this comment yet.