[cfe-dev] How long should a compile of a single C file with a vast number of macros take?

David Blaikie dblaikie at gmail.com
Wed Jan 29 11:21:14 PST 2014


Assuming the program does actually terminate, you could probably remove
some amount of stuff from the macro or some number of macro calls to reduce
the severity but still demonstrate the contrast (5 sec to 5min, etc or
whatever).

once you've got something that finishes, assuming it still demonstrates a
substantial performance difference, you could look into profiling, etc -
and/or simplifying the code to provide a clear reduced example for other
people to investigate


On Wed, Jan 29, 2014 at 11:00 AM, Oliver Schneider <oliver at f-prot.com>wrote:

> A colleague of mine wrote some test cases in a single huge C file with a
> lot of macros.
>
> GCC takes a few seconds to compile the file, but Clang takes apparently
> more than 10 minutes - I canceled it at that point.
>
> How can I track down the problem? I guess C-Reduce won't cut it this
> time, because it's a performance problem.
>
> Thanks,
>
> // Oliver
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140129/31f04688/attachment.html>


More information about the cfe-dev mailing list