简体   繁体   中英

What are the names of different parts of GCC, Apple LLVM, and MSVC compilers?

I'm trying to understand the names of different parts of popular compilers. The compilers I'm comparing are the GNU Compiler Collection, Apple LLVM, and Microsoft Visual C++ (are these the correct names for the compilers?) Is the following table correct:

                 GCC      Apple LLVM    MSVC

back end         GCC      LLVM          MSVC
c front end      gcc      clang         MSVC
c++ front end    g++      clang++       MSVC

Also; if I'm compiling my C++ source files with the command clang++ on a mac:

$ clang++ --version
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

what's the name of the compiler I'm using? Should I say I'm using Apple Clang? Or Apple LLVM? Or something else?

This seems to answer the question:

                 GCC      Apple LLVM    MSVC

back end         GCC      LLVM          c2.dll
c front end      gcc      clang         c1.dll
c++ front end    g++      clang++       c1xx.dll

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM