toolchain's output depends on toolchain used to build the compiler?

toolchain's output depends on toolchain used to build the compiler?

ronys ronys at gmx.net
Tue Feb 9 10:41:33 IST 2010


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?
 
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)
 
You might also want to compare the assembly-language output (-S) to narrow
down the problem.
 
If the customer needs cygwin for internal use, I'd suggest using a
virtualization solution such as VirtualBox instead - the integration with
Windows is quite impressive.
 
Cheers,
 
  Rony


  _____  

From: linux-il-bounces at cs.huji.ac.il [mailto:linux-il-bounces at cs.huji.ac.il]
On Behalf Of Shachar Shemesh
Sent: Tuesday, February 09, 2010 8:37 AM
To: linux-il
Subject: toolchain's output depends on toolchain used to build the compiler?


Hi all,

I'm having a weird problem at a client's. They need a toolchain for both
Windows (cygwin) and Linux. What's more, then need the two toolchains to
match exactly - given identical source code, the toolchains must produce the
exact same machine code (tested by doing objdump -d and diffing the
outputs). The toolchains are for bare metal power-pc (powerpc-eabi target).

 [...] 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20100209/5adcd272/attachment.html>


More information about the Linux-il mailing list