Re: a simple formatter

From: Alex Rousskov <rousskov@dont-contact.us>
Date: Thu, 07 Feb 2008 20:50:27 -0700

On Fri, 2008-02-08 at 16:10 +1300, Amos Jeffries wrote:
> > Too bad compilers produce different output for each execution due to
> > timestamps and such.
>
> What do you mean by this? A standard entry-level compiler test is that it
> produces the same output from the same input every time.

The "same()" operations used in those tests may be different from a
"same_MD5s()" operation.

Try inserting an empty line in a middle of a function and recompile. You
will get a different MD5. Stripping the executable does not help in my
tests. Stripping empty lines fron sources does not help if the formatter
moves brackets and such, changing the number of lines. Does our
formatter do that?

Thanks,

Alex.
Received on Thu Feb 07 2008 - 20:50:36 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:09 MST