Compilation speed with GCC (Developers)
> > 1). "-O0" (or -O2 instead of -O3) [older -O2 is as fast as newer's -O0)
>
> BAD. The time you're saving compiling is not worth all the time lost in
> an application that is now not optimized at all. Use -O2, not -O3, which
> may cause instability.
Not every app actually needs to be optimized, esp. stuff that only runs for like a second or two. Besides, the faster modern cpus get, the less noticeable it is for some minor stuff. Anyways, it's -O1 (aka, -O) that is officially recommended if you want fast optimization without long compile times. And also, you shouldn't optimize much (if at all) when developing / debugging because it makes it that much harder (esp. with -fomit-frame-pointer, which makes debugging almost impossible).
> > 2). older version (e.g. 2.95.3 or 3.4.4) [old is always less standard
> > compliant, e.g. no decent C99 support]
>
> These compilers may also contain bugs, while rare.
Even newer versions have bugs (regressions). I'm just saying, some apps were written back when those "old" versions were modern and worked fine with them. In those cases, I don't think it's "bad" to use them. If you need better C++ support or C99 or Athlon64 optimizations, of course you're gonna have to upgrade.
> > 15). DOSBox (not optimal): turn up frameskip very high
> > - don't need it when all you're using is cmdline apps !
> > - you need multi-Ghz in order to emulate a 486, so this is quite
> > slow!
>
> BAD. Avoid compiling in emulators, especially buggy ones :p
Well, I can't say for sure how unstable compiles would be on that. But it's majorly not recommended anyways because it's so ultra slow.
> > 18). use MinGW's "make -j2" under Win32 (but somewhat incompatible
> syntax
>
> This is partially what I was referring to with my response to #4.
I'm not sure when this is a good idea or not, esp. re: single core cpus and what number is appropriate for what situations (-j4?). But hey, it's worth noting. Too bad nobody ever implemented DR-DOS multitasking support into any make variant (that I know of, anyways).
Complete thread:
- Compilation speed with GCC - Rugxulo, 20.06.2008, 00:17 (Developers)
- Compilation speed with GCC - DOS386, 20.06.2008, 09:38
- Compilation speed with GCC - RayeR, 20.06.2008, 12:34
- Compilation speed with GCC - Rugxulo, 20.06.2008, 21:23
- Compilation speed with GCC - Rugxulo, 21.06.2008, 01:04
- Compilation speed with GCC - Japheth, 21.06.2008, 09:06
- Compilation speed with GCC - Rugxulo, 21.06.2008, 01:04
- Compilation speed with GCC - Rugxulo, 20.06.2008, 21:23
- Compilation speed with GCC - RayeR, 20.06.2008, 12:34
- Compilation speed with GCC - sol, 20.06.2008, 17:36
- Compilation speed with GCC - Rugxulo, 20.06.2008, 21:28
- Compilation speed with GCC - Rugxulo, 21.06.2008, 01:09
- Compilation speed with GCC - sol, 21.06.2008, 01:22
- Compilation speed with GCC - Rugxulo, 21.06.2008, 07:44
- Compilation speed with GCC - marcov, 21.06.2008, 14:07
- Compilation speed with GCC - sol, 21.06.2008, 01:22
- Compilation speed with GCC - marcov, 21.06.2008, 14:03
- Compilation speed with GCC - marcov, 21.06.2008, 14:10
- Compilation speed with GCC - Rugxulo, 22.06.2008, 03:16
- Compilation speed with GCC - marcov, 22.06.2008, 11:39
- Compilation speed with GCC - Rugxulo, 24.06.2008, 01:29
- Compilation speed with GCC - sol, 24.06.2008, 01:42
- Compilation speed with GCC - Rugxulo, 24.06.2008, 03:34
- Compilation speed with GCC - marcov, 24.06.2008, 09:27
- Compilation speed with GCC - Rugxulo, 24.06.2008, 01:29
- Compilation speed with GCC - marcov, 22.06.2008, 11:39
- Compilation speed with GCC - Rugxulo, 22.06.2008, 03:16
- Compilation speed with GCC - marcov, 21.06.2008, 14:13
- Compilation speed with GCC - Rugxulo, 22.06.2008, 03:06
- Compilation speed with GCC - marcov, 22.06.2008, 11:46
- Compilation speed with GCC - Rugxulo, 06.07.2008, 17:18
- Compilation speed with GCC - marcov, 09.07.2008, 18:11
- Compilation speed with GCC - Rugxulo, 06.07.2008, 17:18
- Compilation speed with GCC - marcov, 22.06.2008, 11:46
- Compilation speed with GCC - Rugxulo, 22.06.2008, 03:06
- Compilation speed with GCC - Rugxulo, 09.09.2008, 22:16
- Compilation speed with GCC - DOS386, 20.06.2008, 09:38