Related articles |
---|
Making C compiler generate obfuscated code dennis.yurichev@gmail.com (Dennis Yurichev) (2010-12-07) |
Re: Making C compiler generate obfuscated code paul.biggar@gmail.com (Paul Biggar) (2010-12-09) |
Re: Making C compiler generate obfuscated code Pidgeot18@gmail.com (Joshua Cranmer) (2010-12-09) |
Re: Making C compiler generate obfuscated code torbenm@diku.dk (2010-12-15) |
Re: Making C compiler generate obfuscated code gah@ugcs.caltech.edu (glen herrmannsfeldt) (2010-12-16) |
Re: Making C compiler generate obfuscated code Pidgeot18@gmail.com (Joshua Cranmer) (2010-12-16) |
Re: Making C compiler generate obfuscated code Pidgeot18@gmail.com (Joshua Cranmer) (2010-12-16) |
Re: Making C compiler generate obfuscated code martin@gkc.org.uk (Martin Ward) (2010-12-17) |
Re: Making C compiler generate obfuscated code gah@ugcs.caltech.edu (glen herrmannsfeldt) (2010-12-18) |
Re: Making C compiler generate obfuscated code rpw3@rpw3.org (2010-12-18) |
Re: Making C compiler generate obfuscated code DrDiettrich1@aol.com (Hans-Peter Diettrich) (2010-12-16) |
Re: Making C compiler generate obfuscated code torbenm@diku.dk (2010-12-20) |
[9 later articles] |
From: | Joshua Cranmer <Pidgeot18@gmail.com> |
Newsgroups: | comp.compilers |
Date: | Thu, 16 Dec 2010 10:23:45 -0500 |
Organization: | Georgia Institute of Technology |
References: | 10-12-017 10-12-019 10-12-023 |
Keywords: | C, code |
Posted-Date: | 16 Dec 2010 11:13:32 EST |
On 12/15/2010 05:23 AM, Torben Fgidius Mogensen wrote:
> Some of the least readable code I have seen has been code where every
> trick in the book was used to make it as short as possible, so using
> extreme optimisaton tricks is probably a much better obfuscator than
> inserting random code -- even random control-structure code.
I'm not sure what work has been done on deoptimization (perhaps anyone
with the Hex-Rays decompiler could tell us?), but some of the
optimization techniques seem relatively easy to reverse.
From a purely theoretical standpoint, obfuscation that adds
non-executing code is going to be less difficult to reverse engineer
than obfuscation that does the same thing, just... less obviously.
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
[A good optimizer should make code much more obscure, since it throws
away everything not necessary to produce a correct result. Really good
optimizers like the ones in embedded linkers do gross tricks like combining
constants that happen to have the same bit pattern even though they mean
different things. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.