<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body dir="ltr" bgcolor="#ffffff" text="#000000">
Omer Zak wrote:
<blockquote cite="mid:1265708901.19414.18.camel@c2.home.zak.co.il"
type="cite">
<pre wrap="">On Tue, 2010-02-09 at 11:26 +0200, Shachar Shemesh wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Orna Agmon Ben-Yehuda wrote:
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">If the absolute path is included (I think -g does that). The mount
point in the two environments may be called differently.
</pre>
</blockquote>
<pre wrap="">That's why I'm using objdump -d, which does not print the source
files, and is path location agnostic. In essence, I'm comparing just
the actual assembly produced.
</pre>
</blockquote>
<pre wrap=""><!---->
On Tue, 2010-02-09 at 11:29 +0200, Shachar Shemesh wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Then again, the same source code gets compiled by two supposedly
identical compilers using the same compiler flags. Why should the
result by different?
</pre>
</blockquote>
<pre wrap=""><!---->
1. Compile the project twice on the same platform, saving the object
files from each compilation - to make sure that there are no timestamps.
</pre>
</blockquote>
Tested (and, anyways, if that were the case then the newlib compilation
would not be the same).<br>
<blockquote cite="mid:1265708901.19414.18.camel@c2.home.zak.co.il"
type="cite">
<pre wrap="">
2. From man objdump, I see that there are -d (--disassemble) and -D
(--disassemble-all) flags. What happens if you use objdump -D instead
of objdump -d?
</pre>
</blockquote>
If -d is not the same, -D is guaranteed to be different.<br>
<blockquote cite="mid:1265708901.19414.18.camel@c2.home.zak.co.il"
type="cite">
<pre wrap="">This could catch blocks created from uninitialized (or
differently-initialized) memory areas.
</pre>
</blockquote>
In my software or in the compiler's?<br>
<br>
Shachar<br>
<br>
<pre class="moz-signature" cols="72">--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
<a class="moz-txt-link-freetext" href="http://www.lingnu.com">http://www.lingnu.com</a>
</pre>
</body>
</html>