[gtkmm] precompiled headers



Hi all,

I have tested the classic hello world program using the new gcc 3.4
precompiled headers and... it was 4 times faster! Precompiled headers
rule! :)

#ifdef USE_PCH #include <bits/stdc++.h>
#else
   #include <iostream>
#endif

int main()
{
   std::cout << "Hello World\n";
}

The compile line was: time g++ -o hello hello.cc -DUSE_PCH

Cheers,
Cristi.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]