Re: GCC speed (was [PATCH] Isapnp warning)

Linus Torvalds (torvalds@transmeta.com)
Sun, 22 Jun 2003 10:56:57 -0700 (PDT)


On Sun, 22 Jun 2003, Andrew Morton wrote:
>
> I compile with -O1 all the time and couldn't care the teeniest little bit
> about the performance of the generated code - it just doesn't matter.

Well, sometimes it _does_ matter from a correctness standpoint. For
example, gcc without optimizations was simply unusable, because of the
lack of inlining or the lack of even trivial optimizations (ie static dead
code removal).

And a (unrelated) gcc list thread showed that even with just -O1, one
particular project had gone from 131 seconds (gcc-2.7.2) to 180 seconds
(2.95.3) to 282 seconds (3.3) to 327 seconds (the tree-ssa branch).

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/