簡體   English   中英

GCC、Apple LLVM 和 MSVC 編譯器的不同部分的名稱是什么?

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

我試圖了解流行編譯器不同部分的名稱。 我比較的編譯器是 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

還; 如果我在 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

我正在使用的編譯器的名稱是什么? 我應該說我在使用 Apple Clang 嗎? 還是蘋果LLVM? 或者是其他東西?

這似乎回答了這個問題:

                 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