patch applied (ghc): Choose external names more predictably

Simon Marlow marlowsd at gmail.com
Wed Jul 22 08:27:07 EDT 2009


Mon Jul 20 07:47:51 PDT 2009  Simon Marlow <marlowsd at gmail.com>
  * Choose external names more predictably
  Ignore-this: 17513bc93af646108f21bbed1c8f4a3a
  
  Now, for a compiler-generated binding "x", if "x" is referred to by
  the exported "f", then it will be named "f_x" rather than something
  like "x23".  This means that hopefully
  
    - compilation will more often product the same results given the
      same input (the choice of names is not dependent on the
      non-deterministic order of bindings within the compiler).
  
    - less recompilation will be necessary after making changes
  
    - navigating Core might be a bit easier.
  
  unfortunately, compilation with -O still does not consistently produce
  the same ABI.  The simplifier sometimes does different things,
  apparently.
  
  Names will be longer, but I can't see a way around that.

    M ./compiler/main/TidyPgm.lhs -192 +297

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20090720144751-12142-e45753da27c03c2c495a931765efe31ff3b2bf71.gz



More information about the Cvs-ghc mailing list