toolchain's output depends on toolchain used to build the compiler?
Omer Zak
w1 at zak.co.il
Tue Feb 9 11:48:21 IST 2010
On Tue, 2010-02-09 at 11:26 +0200, Shachar Shemesh wrote:
> Orna Agmon Ben-Yehuda wrote:
> >
> > If the absolute path is included (I think -g does that). The mount
> > point in the two environments may be called differently.
> >
> 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.
On Tue, 2010-02-09 at 11:29 +0200, Shachar Shemesh wrote:
> Then again, the same source code gets compiled by two supposedly
> identical compilers using the same compiler flags. Why should the
> result by different?
1. Compile the project twice on the same platform, saving the object
files from each compilation - to make sure that there are no timestamps.
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?
This could catch blocks created from uninitialized (or
differently-initialized) memory areas.
--- Omer
--
MCSE - acronym for Minesweeper Consultant & Solitaire Expert. (Unknown)
My own blog is at http://www.zak.co.il/tddpirate/
My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html
More information about the Linux-il
mailing list