Shachar Shemesh
Tue, 09 Feb 2010 02:23:34 -0800
Omer Zak wrote:
Tested (and, anyways, if that were the case then the newlib compilation would not be the same).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?
If -d is not the same, -D is guaranteed to be different.
This could catch blocks created from uninitialized (or differently-initialized) memory areas.
In my software or in the compiler's? Shachar -- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com
_______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
- toolchain's output depends on toolchain used to build the compiler? Shachar Shemesh
- RE: toolchain's output depends on toolchain used to build the compiler? ronys
- Re: toolchain's output depends on toolchain used to build the compiler? Shachar Shemesh
- Re: toolchain's output depends on toolchain used to build the compiler? Orna Agmon Ben-Yehuda
- Re: toolchain's output depends on toolchain used to build the compiler? Shachar Shemesh
- Re: toolchain's output depends on toolchain used to build the compiler? Omer Zak
Re: toolchain's output depends on toolchain used to build the compiler? Shachar Shemesh- Re: toolchain's output depends on toolchain used to build the compiler? Omer Zak
- RE: toolchain's output depends on toolchain used to buildthe compiler? ronys
- RE: toolchain's output depends on toolchain used to build the compiler? Omer Zak
- Re: toolchain's output depends on toolchain used to build the compiler? Oleg Goldshmidt