简体   繁体   English

GCC、Apple LLVM 和 MSVC 编译器的不同部分的名称是什么?

[英]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:我比较的编译器是 GNU Compiler Collection、Apple LLVM 和 Microsoft Visual C++(这些是编译器的正确名称吗?)下表是否正确:

                 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:如果我在 Mac 上使用命令clang++编译我的 C++ 源文件:

$ 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?我应该说我在使用 Apple Clang 吗? Or Apple LLVM?还是苹果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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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