Dude, where’s my code?

jes

MyBroadband Alumnus
Joined
Nov 11, 2009
Messages
11,992
Reaction score
123
Dude, where’s my code?

A new system warns programmers when compilers — which convert high-level programs into machine-readable instructions — might simply discard their code – by Larry Hardesty
 
This is some pretty interesting stuff.

I'm curious if the compilers change like equal time byte array comparisons to exit on first match :)
but I suppose it depends on what optimizations you've selected in the compiler, such as code speed or code size.

I would love to run this on OpenSSL and my Java apps (which it does not support yet)...
 
Programmers don't understand compilers

The paper "Towards Optimization-Safe Systems:Analyzing the Impact of Undefined Behavior" makes for interesting reading. In my stupid terms, the compiler is assuming that the programmer understands how the compiler works, and sometimes accepts snippets of misinformation from the programmer that the programmer didn't intend to provide. Programmer says, "Give me an ice cream," and the compiler learns, "I have an ice cream! Yay!".
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X