Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Clang vs GCC
Forum Updated to NodeBB v4.3 + New Features

Clang vs GCC

Scheduled Pinned Locked Moved C++ Gurus
4 Posts 4 Posters 2.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kofr
    wrote on last edited by
    #1

    I came across topic with benchmarking of GCC and Clang
    http://www.phoronix.com/scan.php?page=article&item=gcc-61-clang39&num=1
    So far I used GCC, but it seems not the fast. What do you use and why Clang is faster sometimes?

    jsulmJ K 2 Replies Last reply
    0
    • K Kofr

      I came across topic with benchmarking of GCC and Clang
      http://www.phoronix.com/scan.php?page=article&item=gcc-61-clang39&num=1
      So far I used GCC, but it seems not the fast. What do you use and why Clang is faster sometimes?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Kofr I'm using what is the default on the platform: GCC on Linux, VC++ on Windows. Clang is now default on MacOS.
      Why Clang is faster? Well, that you should ask Clang developers, not in a Qt forum.
      Do you have any real issues with GCC performance?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Kofr

        I came across topic with benchmarking of GCC and Clang
        http://www.phoronix.com/scan.php?page=article&item=gcc-61-clang39&num=1
        So far I used GCC, but it seems not the fast. What do you use and why Clang is faster sometimes?

        K Offline
        K Offline
        Konstantin Tokarev
        wrote on last edited by
        #3

        @Kofr I'm using Clang for native compilation unless I have to use GCC for some reason. For cross-compilation I'm using what vendor recommends, currently it's always GCC.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jagh
          wrote on last edited by
          #4

          I'm using Microsoft's compiler for Windows, GCC for Linux.

          And I find that GCC is definitely the slower one of the two. Why? Have no idea.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved