Newsgroups: comp.compilers
From: torb...@diku.dk (Torben Ęgidius Mogensen)
Date: Wed, 15 Dec 2010 11:23:49 +0100
Local: Wed, Dec 15 2010 5:23 am
Subject: Re: Making C compiler generate obfuscated code
Joshua Cranmer <Pidgeo...@gmail.com> writes: Indeed. I wsa not impressed by the approach: It made the code a lot > If I wanted to deobfuscate this code, all I have to do is first run it > through an optimizer, and one simple enough to be written as a course > project at that. If you really want to obfuscate the code, it's better > to modify the control flow graph as opposed to inserting random > do-nothing code. larger and a lot slower and the obfuscation was easy to remove. Ideally, obfuscated code should only be marginally larger and slower than "normal" code, but extremely difficult to reverse-engineer. Some of the least readable code I have seen has been code where every Some common optimisations do, indeed, make the code less readable: - Split a variable x into two variables p and q, such that x=p+q. - Replace two otherwise unrelated variables x and y by p and q such - A variable x holding small non-negative integers is replaced by a Torben You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||