From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,db4d7e52353eb035 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.185.201 with SMTP id cp9mr4182462qab.6.1363361730304; Fri, 15 Mar 2013 08:35:30 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.49.81.198 with SMTP id c6mr614022qey.37.1363361730258; Fri, 15 Mar 2013 08:35:30 -0700 (PDT) Path: k8ni188qas.0!nntp.google.com!dd2no1389503qab.0!postnews.google.com!r8g2000vbj.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 15 Mar 2013 08:35:30 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: r8g2000vbj.googlegroups.com; posting-host=206.122.158.4; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 206.122.158.4 References: <90bf1e05-3a48-498b-96f4-b16569c40618@googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22,gzip(gfe) Message-ID: <380dd34d-3a26-4cc2-a05d-66eddca3c4e3@r8g2000vbj.googlegroups.com> Subject: Re: Reverse engineering Ada's compiled code From: Gautier write-only Injection-Date: Fri, 15 Mar 2013 15:35:30 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2013-03-15T08:35:30-07:00 List-Id: On 15 mar, 14:14, Dufr wrote: > As a side question: are there any particular measures that one can take to make it harder for someone to reverse engineer Ada's compiled code? Hi! Probably the easiest step is to switch code optimization on, and debug symbols off. With GNAT, with -O2 you are certainly on the safe side. If you switch on cross-unit inlining (-gnatn) and perhaps also set loop unrolling, peeling, and unswitching (-funroll-loops -fpeel-loops - funswitch-loops), it should make reverse engineering very hard. In case you need debug symbols, there is an Ada identifier obfuscator IIRC. _________________________ Gautier's Ada programming http://sf.net/users/gdemont/