[llvm-bugs] [Bug 38454] New: clang++ compilation quite slow

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 6 00:35:24 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38454

            Bug ID: 38454
           Summary: clang++ compilation quite slow
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: xuyc at sina.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

1.
the same cpp file , if compiled by clang need 4.5s, g++ only need 0.3s

[alex at c++]$time clang++ -g -std=c++11 -I/usr/include/c++/4.8.5
/home/alex/base/c++/hello.cpp -ohello.exe 

real    0m4.543s
user    0m4.493s
sys     0m0.049s
[alex at c++]$time g++ -g -std=c++11 -I/usr/include/c++/4.8.5
/home/alex/base/c++/hello.cpp -ohello.exe 

real    0m0.300s
user    0m0.259s
sys     0m0.042s
[alex at c++]$

2. sw:
llvm/clang 6.01
gcc        4.85

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180806/c8e876c1/attachment.html>


More information about the llvm-bugs mailing list