[cfe-dev] Clang on Windows targteing gcc compiles very slowly
Yaron Keren
yaron.keren at gmail.com
Tue Jun 2 22:47:11 PDT 2015
Here is a boost::numeric example that compiles quite slow. It requires
boost headers only.
2015-06-03 2:07 GMT+03:00 Nikola Smiljanic <popizdeh at gmail.com>:
> I was about to suggest the same, you can add /Bt+ to msvc to print out
> compile times for individual files. Find the slowest one and try it with
> clang (I guess you can use PowerShell
> http://superuser.com/questions/228056/windows-equivalent-to-unix-time-command
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__superuser.com_questions_228056_windows-2Dequivalent-2Dto-2Dunix-2Dtime-2Dcommand&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=x2-INTSPs_xQUUUpDT15A5D-tZ4u4kF61MNE1tl0QAo&s=q8y9tHuCyeGCToLaklAipdBINdvO_0-rwoZc3TzsGO0&e=>
> ).
>
> On Wed, Jun 3, 2015 at 6:50 AM, Sean Silva <chisophugis at gmail.com> wrote:
>
>>
>>
>> On Mon, Jun 1, 2015 at 9:27 AM, Dennis Luehring <dl.soluz at gmx.net> wrote:
>>
>>> i only compared Microsoft CL with cl-clang (from http://llvm.org/builds/
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_builds_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=F0-TlLu8wZj-QcYcLWTpmo251k1w1lbeo5uj1fjNZAY&s=ItGDeRxbJmbIQjxkgyIWRU9bq4xH9Rto6dcnFcaQxS4&e=>
>>> )
>>> and cl-clang is ~2 Times slower in build
>>>
>>> there is no small example available - my project is closed and my open
>>> source dependecy Xerces 3.1.2
>>> is not compilable, other open souce projects mentioned (last posts) are
>>> not buildable with cl-clang
>>>
>>
>> Can you maybe try compiling a couple files of the open source project in
>> isolation to see if you can narrow things down to a single representative
>> file?
>>
>> -- Sean Silva
>>
>>
>>>
>>> you need a VStudio Project with a least 1-2 minutes build-time - then
>>> switch to
>>> cl-clang and compare the build-time
>>>
>>>
>>>
>>> Am 01.06.2015 um 18:15 schrieb Yaron Keren:
>>>
>>>> I wouldn't expect clang-cl (targeting VC) build time to be different
>>>> than
>>>> clang (targeting mingw), so the difference is probably not clang on
>>>> WIndows
>>>> specifically but rather clang in general.
>>>> Could you send a small example outlining the difference?
>>>>
>>>>
>>>>
>>>> 2015-06-01 18:54 GMT+03:00 Dennis Luehring <dl.soluz at gmx.net>:
>>>>
>>>> > i've got the same compilation difference between cl and cl-clang
>>>> using the
>>>> > http://llvm.org/builds/
>>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_builds_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=F0-TlLu8wZj-QcYcLWTpmo251k1w1lbeo5uj1fjNZAY&s=ItGDeRxbJmbIQjxkgyIWRU9bq4xH9Rto6dcnFcaQxS4&e=>
>>>> >
>>>> > is there an official cl/cl-clang testprojects collection or how is the
>>>> > testing done?
>>>> >
>>>> >
>>>> > Am 01.06.2015 um 17:47 schrieb Yaron Keren:
>>>> >
>>>> >> >How and with what ?
>>>> >>
>>>> >> Comparing the compilation time between snapshot binary and the
>>>> version you
>>>> >> built locally will pinpoint if the problem is in clang in general or
>>>> some
>>>> >> local configuration.
>>>> >>
>>>> >>
>>>> >>
>>>> >> 2015-06-01 18:06 GMT+03:00 Edward Diener <
>>>> eldlistmailingz at tropicsoft.com
>>>> >> >:
>>>> >>
>>>> >> > On 6/1/2015 12:24 AM, Yaron Keren wrote:
>>>> >> >
>>>> >> >> Edward, could you time the snapshot binaries from
>>>> >> >> http://llvm.org/builds/
>>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_builds_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=F0-TlLu8wZj-QcYcLWTpmo251k1w1lbeo5uj1fjNZAY&s=ItGDeRxbJmbIQjxkgyIWRU9bq4xH9Rto6dcnFcaQxS4&e=>
>>>> >> >>
>>>> >> >
>>>> >> > How and with what ?
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> > _______________________________________________
>>>> >> > cfe-dev mailing list
>>>> >> > cfe-dev at cs.uiuc.edu
>>>> >> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>>> >> >
>>>> >>
>>>> >>
>>>> >>
>>>> >> _______________________________________________
>>>> >> cfe-dev mailing list
>>>> >> cfe-dev at cs.uiuc.edu
>>>> >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>>> >>
>>>> >
>>>> > _______________________________________________
>>>> > cfe-dev mailing list
>>>> > cfe-dev at cs.uiuc.edu
>>>> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>>> >
>>>>
>>>>
>>> _______________________________________________
>>> cfe-dev mailing list
>>> cfe-dev at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>>
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>>
>
> _______________________________________________
> 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/20150603/70d7c84a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stiff_system.cpp
Type: text/x-c++src
Size: 3072 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150603/70d7c84a/attachment.cpp>
More information about the cfe-dev
mailing list