From: "Robert S. White" <RSWhite@CACD.Rockwell.com>
To: craigm@syd.csa.com.au
Subject: Re: differences in binaries
Date: 1996/10/14
Date: 1996-10-14T00:00:00+00:00 [thread overview]
Message-ID: <32627EAD.92@CACD.Rockwell.com> (raw)
In-Reply-To: Dz959x.4LM@syd.csa.com.au
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
next prev parent reply other threads:[~1996-10-14 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-14 0:00 differences in binaries Craig Moore
1996-10-14 0:00 ` Robert S. White [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-10-14 0:00 tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox