Is there a difference in compiling a project using GCC and CLang ?
Is there a difference in compiling a project using GCC and CLang ?
To answer your question we need to make a brief reflection.
-O CLang is only about the front-end , "let's say it basically handles with the options and paths of links to the files ", for the compilation itself, it uses LLVM which is responsible for the lexical analysis, syntax and semantics of the compilation process. GCC is a complete set with front-end and back-end .
Summary of Clang Options although it has many basic basic options , also contains compile options other than GCC Options Summary .
Well said this, I hope it has become clear that although the basic commands compile a program using GCC is different from compiling a program using Clang + LLVM.