Testing and Verifying GCC Compiler Reproducibility

Ian Lance Taylor iant@google.com
Sat Jul 19 01:38:00 GMT 2008


"Michael Gould" <mgould@sourcescientific.com> writes:

> I'm working on a project that uses the GCC compiler.  I'm required
> by the FDA to produce documentation to show that the GCC compiler
> always gives the same results for a given set of code.  I'm
> concerned about testing the reproducibility of compiled code.  How
> do I go about testing and verifying that the compiler always
> reproduces the exact same compiled code for a given program?

The normal gcc build process is to build gcc three times, and compare
the files generate during the second and third build to verify that
they are identical.  That's about as good as you can get on this
point.

Ian



More information about the Gcc-help mailing list