Re: C++ compilations times
Antonio Bravo wrote: Den Thu, 19 Jan 2006 17:08:58 +0100, skrev Erik Wikström: Are you using the same version of gcc? I seem to recall that there were some performance issues about C++, but that might have been gcc 4. Erik Wikström NetBSD: gcc-3.3.3, OpenBS: gcc-3.3.5 and well DragonFly-1.4.0 is gcc-3.4.5 compilator behavior is what I had in mind first too, but they are all minor version of the 3.x serie. While it is only the minor version number that is different the changes in GCC are substantial as far as I know. Though the 200% time change sounds too much. Are all the ports using same optimization levels? I will search through the gnu-gcc list... antonio. VH signature.asc Description: OpenPGP digital signature
Re: C++ compilations times
On Thu, January 19, 2006 10:31 am, Antonio Bravo wrote: Curious about getting documentation or tips if possible. I have build JDK14 yesterday from pkgsrc/wip and it took more than 6 hours on a box where the same JDK is built in about 3 hours for NetBSD or OpenBSD... Similar thing do happen with the other c++ beasts like KDE, it takes roughly more x2 time to build.Insane. I know zero about c++, but if someone can point to some docs about that issue I will appreciate much.Thanks! Are you using the same version of pkgsrc-wip on each machine? Is the same number of dependencies being installed on each machine? (i.e. the NetBSD/OpenBSD systems where you did this didn't already have some of the needed packages?)
Re: C++ compilations times
Den Thu, 19 Jan 2006 10:23:48 -0500, skrev Justin C. Sherrill: On Thu, January 19, 2006 10:31 am, Antonio Bravo wrote: Curious about getting documentation or tips if possible. I have build JDK14 yesterday from pkgsrc/wip and it took more than 6 hours on a box where the same JDK is built in about 3 hours for NetBSD or OpenBSD... Similar thing do happen with the other c++ beasts like KDE, it takes roughly more x2 time to build.Insane. I know zero about c++, but if someone can point to some docs about that issue I will appreciate much.Thanks! Are you using the same version of pkgsrc-wip on each machine? Is the same number of dependencies being installed on each machine? (i.e. the NetBSD/OpenBSD systems where you did this didn't already have some of the needed packages?) (well for OpenBSD, it's not from pkgsrc-wip but from their own port). On all three systems, Net, Open and DragonFly, all required dependencies were already in place.The linux packages and the linux JDK. Only the bootstrap and build of Java itself had to be run. The only difference is the level version of the BSD patchset from eyesbeyond.com, which was version 7 when I built JDK on Net and Open a couple monthes ago, and it's version 8 now. For JDK it's not so annoying.Once build it can be used for a while. But when one wants to play with KDE builds, twice the time on DragonFly is painful... Most of all I wonder about the how and why. Gcc versions ? OS own's optimizations ? etc ? -- Men alt dette er ikke begyndelsen. - Knut HAMSUN, Mysterier, 1892
Re: C++ compilations times
On 2006-01-19 16:31, Antonio Bravo wrote: Curious about getting documentation or tips if possible. I have build JDK14 yesterday from pkgsrc/wip and it took more than 6 hours on a box where the same JDK is built in about 3 hours for NetBSD or OpenBSD... Similar thing do happen with the other c++ beasts like KDE, it takes roughly more x2 time to build.Insane. I know zero about c++, but if someone can point to some docs about that issue I will appreciate much.Thanks! Are you using the same version of gcc? I seem to recall that there were some performance issues about C++, but that might have been gcc 4. Erik Wikström -- I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone -- Bjarne Stroustrup
Re: C++ compilations times
Den Thu, 19 Jan 2006 17:08:58 +0100, skrev Erik Wikström: Are you using the same version of gcc? I seem to recall that there were some performance issues about C++, but that might have been gcc 4. Erik Wikström NetBSD: gcc-3.3.3, OpenBS: gcc-3.3.5 and well DragonFly-1.4.0 is gcc-3.4.5 compilator behavior is what I had in mind first too, but they are all minor version of the 3.x serie. I will search through the gnu-gcc list... antonio. -- Men alt dette er ikke begyndelsen. - Knut HAMSUN, Mysterier, 1892
Re: C++ compilations times
Erik Wikström writes: On 2006-01-19 16:31, Antonio Bravo wrote: Curious about getting documentation or tips if possible. I have build JDK14 yesterday from pkgsrc/wip and it took more than 6 hours on a box where the same JDK is built in about 3 hours for NetBSD or OpenBSD... Similar thing do happen with the other c++ beasts like KDE, it takes roughly more x2 time to build.Insane. I know zero about c++, but if someone can point to some docs about that issue I will appreciate much.Thanks! Are you using the same version of gcc? I seem to recall that there were some performance issues about C++, but that might have been gcc 4. Erik Wikström Exactly. Ensure that you are comparing the same version of gcc on each platform, and you're that using the same optimizations. There have been radical improvements in gcc's C++ implementation and compiler over the course of the 3.x series. 3.4.x and 4.0.0 especially. Additionally aggressive optimization seems to affect the speed gcc's C++ compiler more than its C compiler.