Should GHC default to -O1 ?
Johan Tibell
johan.tibell at gmail.com
Tue Nov 8 16:54:07 CET 2011
On Tue, Nov 8, 2011 at 7:11 AM, David Fox <ddssff at gmail.com> wrote:
> On Tue, Nov 8, 2011 at 6:31 AM, Daniel Fischer
> <daniel.is.fischer at googlemail.com> wrote:
> > On the haskell-cafe as well as the beginners mailing lists, there
> > frequently (for some value of frequent) are posts where the author
> inquires
> > about a badly performing programme, in the form of stack overflows, space
> > leaks or slowness.
> >
> > Often this is because they compiled their programme without
> optimisations,
> > simply recompiling with -O or -O2 yields a decently performing programme.
> >
> > So I wonder, should ghc compile with -O1 by default?
> > What would be the downsides?
>
> I think this is an excellent idea. Even better -O2.
FWIW gcc defaults to -O0.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20111108/39bddb74/attachment.htm>
More information about the Glasgow-haskell-users
mailing list