Rugxulo Usono, 20.06.2008, 00:17 |
Compilation speed with GCC (Developers) |
We all love GCC, and this topic is definitely not meant to annoy them or detract from their hard work. But, it needs to be mentioned that GCC speed can be slower than necessary if not used properly. Here are a few comments (mostly DOS-oriented, surprise surprise): |
DOS386 20.06.2008, 09:38 @ Rugxulo |
Compilation speed with GCC |
> GCC speed can be slower than necessary if not used properly --- |
RayeR CZ, 20.06.2008, 12:34 @ DOS386 |
Compilation speed with GCC |
> > 23). avoid (slow!) virtual memory (CWSDPMI) by freeing up RAM --- |
Rugxulo Usono, 20.06.2008, 21:23 @ RayeR |
Compilation speed with GCC |
> > > 23). avoid (slow!) virtual memory (CWSDPMI) by freeing up RAM |
Rugxulo Usono, 21.06.2008, 01:04 @ Rugxulo |
Compilation speed with GCC |
> I haven't tested speeds, so I can't say for sure. But even if it ran |
Japheth Germany (South), 21.06.2008, 09:06 @ Rugxulo |
Compilation speed with GCC |
> CWSDPMI r5 "testing" (2002): Elapsed time: 166.700 seconds --- |
sol 20.06.2008, 17:36 @ Rugxulo |
Compilation speed with GCC |
> 1). "-O0" (or -O2 instead of -O3) [older -O2 is as fast as newer's -O0) |
Rugxulo Usono, 20.06.2008, 21:28 @ sol |
Compilation speed with GCC |
> > 1). "-O0" (or -O2 instead of -O3) [older -O2 is as fast as newer's -O0) |
Rugxulo Usono, 21.06.2008, 01:09 @ Rugxulo |
Compilation speed with GCC |
> I tried to find various ways to speed up GCC. Some are more esoteric (or |
sol 21.06.2008, 01:22 @ Rugxulo |
Compilation speed with GCC |
> gold |
Rugxulo Usono, 21.06.2008, 07:44 @ sol |
Compilation speed with GCC |
> So they can't speed things up that aren't bottlenecks without deserving |
marcov 21.06.2008, 14:07 @ sol |
Compilation speed with GCC |
> > gold |
marcov 21.06.2008, 14:03 @ Rugxulo |
Compilation speed with GCC |
> 18). use MinGW's "make -j2" under Win32 (but somewhat incompatible syntax |
marcov 21.06.2008, 14:10 @ Rugxulo |
Compilation speed with GCC |
> I tried to find various ways to speed up GCC. Some are more esoteric (or |
Rugxulo Usono, 22.06.2008, 03:16 @ marcov |
Compilation speed with GCC |
> Another note, a real *nix will kill mingw or cygwin in speed. I sometimes |
marcov 22.06.2008, 11:39 @ Rugxulo |
Compilation speed with GCC |
> > It is possibly related to the rather heavy process creation time on |
Rugxulo Usono, 24.06.2008, 01:29 @ marcov |
Compilation speed with GCC |
> So disk caching probably also. In the old days when performance still |
sol 24.06.2008, 01:42 @ Rugxulo |
Compilation speed with GCC |
> I've heard both "noatime" and "relatime" can help, but it seems to matter |
Rugxulo Usono, 24.06.2008, 03:34 @ Rugxulo |
Compilation speed with GCC |
> P.S. I forgot to mention earlier, -pipe supposedly speeds GCC up a |
marcov 24.06.2008, 09:27 @ Rugxulo |
Compilation speed with GCC |
> > So disk caching probably also. In the old days when performance still |
marcov 21.06.2008, 14:13 @ Rugxulo |
Compilation speed with GCC |
Some (admitted only sideways) related info why gcc is fairly slow: |
Rugxulo Usono, 22.06.2008, 03:06 @ marcov |
Compilation speed with GCC |
> Some (admitted only sideways) related info why gcc is fairly slow: |
marcov 22.06.2008, 11:46 @ Rugxulo |
Compilation speed with GCC |
> > Some (admitted only sideways) related info why gcc is fairly slow: |
Rugxulo Usono, 06.07.2008, 17:18 @ marcov |
Compilation speed with GCC |
(Sorry in advance for bumping an "old" thread, if you care.) |
marcov 09.07.2008, 18:11 @ Rugxulo |
Compilation speed with GCC |
> (Sorry in advance for bumping an "old" thread, if you care.) |
Rugxulo Usono, 09.09.2008, 22:16 (edited by Rugxulo, 10.09.2008, 16:07) @ Rugxulo |
Compilation speed with GCC |
> 1). "-O0" (or -O2 instead of -O3) [older -O2 is as fast as newer's -O0) |