GCC 3.3 compile speed regression - AN ANSWER

Joe Buck jbuck@synopsys.com
Wed Feb 12 02:28:00 GMT 2003


On Tue, Feb 11, 2003 at 11:55:33AM -0000, Rob Taylor wrote:
> g++ is so incredibly slow - observe:
> 
> hellow.cpp:
> #include <iostream>
> 
> int main()
> {
>     std::cout << "Hello, world!\n";
> }
> 
> robt@hal:~$ time g++-3.1 hellow.cpp
> 
> real    0m1.815s
> user    0m1.620s
> sys     0m0.090s

Congrats, you just timed the compiler, the assembler, and the linker,
not just the compiler.  The compiler is too slow, but if you want to time
just the compiler you need to write

time g++-3.1 -S hellow.cpp
 



More information about the Gcc mailing list