8 Matching Annotations
  1. Jan 2023
    1. While Clang has historically been faster than GCC at compiling, the output quality has lagged behind. As of 2014, performance of Clang-compiled programs lagged behind performance of the GCC-compiled program, sometimes by large factors (up to 5.5x),[28] replicating earlier reports of slower performance.[26] Both compilers have evolved to increase their performance since then, with the gap narrowing: Comparisons in November 2016 between GCC 4.8.2 versus clang 3.4, on a large harness of test files shows that GCC outperforms clang by approximately 17% on well-optimized source code. Test results are code-specific, and unoptimized C source code can reverse such differences. The two compilers thus seem broadly comparable.[30][unreliable source] Comparisons in 2019 on Intel Ice Lake has shown that programs generated by Clang 10 has achieved 96% of the performance of GCC 10 over 41 different benchmarks (while winning 22 and losing 19 out of them).[29]

      Clang is faster than GCC because it uses LLVM as its underlying compiler infrastructure. LLVM has a highly optimised code generation approach that makes it very efficient in terms of both space and time. In addition, Clang also contains several optimisation passes (such as global optimisations and link-time optimisation) that improve the generated code further.

  2. Dec 2022
    1. Clang works in tandem with LLVM.[20] The combination of Clang and LLVM provides most of the toolchain for replacing the GCC stack. One of Clang's main goals is to provide a library-based architecture,[21] so that the compiler could interoperate with other tools that interact with source code, such as integrated development environments (IDE). In contrast, GCC works in a compile-link-debug workflow

      What is the difference between LLVM and GCC in their workflow?

  3. www.msys2.org www.msys2.org
    1. MSYS2 is a collection of tools and libraries providing you with an easy-to-use environment for building, installing and running native Windows software.

      msys2

      The C/C++ extension does not include a C++ compiler or debugger. You will need to install these tools or use those already installed on your computer.

  4. Apr 2022
    1. Another elaborate site touching advanced C/C++ issues.

  5. Apr 2021
    1. Beautiful introduction about STL & Boost.

    2. Right on the front page of the Boost Website is a mention that ten Boost libraries have made it into the C++ 11 standard.

      The link to the 10 Boost libs adopted by C++ 11 has moved into inner pages of the boost.org.