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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,82093f301d2e0a3b X-Google-Attributes: gid103376,public From: "Robert S. White" Subject: Re: differences in binaries Date: 1996/10/14 Message-ID: <32627EAD.92@CACD.Rockwell.com>#1/1 X-Deja-AN: 190146966 references: to: craigm@syd.csa.com.au content-type: text/plain; charset=us-ascii organization: Rockwell International, CACD mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.02 (Win16; I) Date: 1996-10-14T00:00:00+00:00 List-Id: Craig Moore wrote: > When doing a byte-by-byte comparison of seemingly identical binaries > (ie compile, move the resulting binary to binary.old, then compile > again and compare) there seems to be all sorts on differences > between the two files, even though they were only just re-linked. > > I guess it is just timestamp information but can anyone point me to > some doco's that possibly explain what the differences are ?? > > We are using SunAda 1.1 but I'm sure this occurs with other > versions of Ada. When I use a version of DDC-I Ada 83 and run a tool on the linker output to prepare the result for ROM programming, I can get exact compares of load modules. This works if the command file for the linker lists the object modules in the same order and the elaboration code calls all of the component elaboratiions in the same order. Changing a Ada spec can cause a re-build of just the neccessary modules to have a different command file to the linker and different elaboration code than if one deleted all object and other intermediate files and did an entire rebuild from scratch. But I have seen mulitiple rebuilds from scratch generate identical code for ROM programming for the particular compiler I use for some target systems. Your mileage may vary. Previous threads on this subject about a year ago talked about different host computer resources causing modules to be built in different orders if I recall correctly. DEC Ada? _______________________________________________________________________ Robert S. White | Opinions expressed are my own. whiter@crpl.cedar-rapids.lib.ia.us | An Embedded Systems programmer