This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: help with improving compile times
- From: Mason <slash dot tmp at free dot fr>
- To: Matthias Kretz <m dot kretz at gsi dot de>
- Cc: GCC help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 15 May 2017 13:05:09 +0200
- Subject: Re: help with improving compile times
- Authentication-results: sourceware.org; auth=none
- References: <7758193.5tzhTicriZ@mars>
On 15/05/2017 12:11, Matthias Kretz wrote:
> I'm looking for help on improving the compile times of my unit tests. Compile
> times of >60s per TU is making my life hard.
> Alternatively, if you can tell me there's nothing I can do, then I can accept
> my fate and stop worrying about compile time optimizations. [...]
>
> If you have any ideas what I could do (other than "test less"), I'd like to
> try it.
If compile-time is an issue (rather than run-time) perhaps you can try reducing
the optimization level to -O1. You should also test at -O0.
If -O1 has acceptable compile-time and run-time, then you're (mostly) done.
Perhaps just a single optimization tickles a pathological corner case?
Regards.