This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Re: Output of (estimated) remaining compile time for huge source files
- From: "M. Koehrer" <mathias_koehrer at arcor dot de>
- To: gcc-help at gcc dot gnu dot org, brian at dessent dot net, mathias_koehrer at arcor dot de
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 27 Dec 2006 10:36:56 +0100 (CET)
- Subject: Re: Re: Output of (estimated) remaining compile time for huge source files
- References: <458C4C78.D425E4E1@dessent.net> <18795375.1166774048840.JavaMail.ngmail@webmail16>
Hi Brian,
thanks for your answer.
Perhaps I have to do it with a bash script that runs gcc in background and checks in foreground
if it is still running and printing out alive messages.
Regards
Mathias
> > I am using gcc 4.1.2 (Debian Linux Etch) on a Pentium 4.
> > I have a code generator that generates really huge C source code files
> > (up to 5-8 MByte source code in a single file) that have to be compiled
> with gcc 4.1.2.
> > However, the compilation of this huge C source files takes really long,
> > sometimes up to 1 hour for a single file.
> > Unfortunately I do not get any feedback about the current progress of gcc
> once
> > it is started.
> > My question is now, is it somehow possible to force gcc to print out
> regularly
> > a progress information (like: estimated percentage done or the steps that
> > are already done and still have to be done or something else)?
> >
> > I have not found any information about that in the gcc documentation.
>
> I don't think any such thing exists. The closest would be -fmem-report
> or -ftime-report, but those are generated at the end of the compile, not
> in real time.
>
> The problem is that the compiler itself doesn't know how long any given
> stage will take without actually running it, so there is no way to give
> any kind of accurate percentage. You could try patching the pass
> manager to print something at the beginning of each pass, but that would
> only really be an "I'm here" message, it would not indicate anything
> about percentage or ETA, since many passes would probably fly by very
> quickly and some would take very long.
>
> Brian
>
--
Mathias Koehrer
mathias_koehrer@arcor.de
Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur 44,85 ? inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2