Orna Agmon Ben-Yehuda wrote:


2010/2/9 Shachar Shemesh <shac...@shemesh.biz <mailto:shac...@shemesh.biz>>

    ronys wrote:
    Hi Shachar,
Interesting problem. Here are some thoughts: Can you control the level of optimization used by the customer?
    Does -O0 create identical object code?

    Havn't tested yet, but my gut feeling is "yes".

    What are the differences in code? Perhaps they're related to the
    different paths? (If the lengths of the paths are different, and
    they're stored somewhere in the object code, that'll change the
    results)
    The question is why should identical source code produce different
    paths when compiled with the same compiler?


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.

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

Reply via email to