This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Testing and Verifying GCC Compiler Reproducibility
- From: Ian Lance Taylor <iant at google dot com>
- To: "Michael Gould" <mgould at sourcescientific dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 18 Jul 2008 17:47:24 -0700
- Subject: Re: Testing and Verifying GCC Compiler Reproducibility
- References: <309F164A247CA8419485BA0AF410EAB249066F@ss-mail.source.local>
"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