Contents :
Part - 1 :
- Understanding what GNU, GCC and Clang means. ?
- Advantages of GCC and Clang over each other.
- Apple and Clang
- Which should you prefer ? GCC or Clang ?
Understanding what GNU, GCC and Clang means ?
What is GCC ?
- GNU / GCC ? Same or different ?
- GCC is an acronym for GNU_Compiler_Collection(GCC) that we mainly use for compiling the C++ and the C languages. (Along with supporting other languages such as ObjectiveC, Fortran Go etc.)
- The Free Software Foundation (FSF) distributes GCC as free software under the GNU General Public License (GNU GPL).
- Reach and uses ?
- It is an official compiler for the GNU and Linux systems, and a main compiler for compiling and creating other UNIX operating systems.
What is Clang ?
- Clang is another compilor which majorly supports C, C++ and Objective C.
- Some LLVM jargon and etc.
- LLVM contains a series of modularized compiler components and tool chains. It can optimize program languages and links during compilation, runtime, and idle time and generate code. LLVM can serve as a background for compilers in multiple languages. Clang is a C, C++, Objective-C, or Objective-C++ compiler that is compiled in C++ based on LLVM and released under the Apache 2.0 license.
- Clang is mainly used to provide performance superior to that of GCC.
Advantages of GCC and Clang over each other.
- GCC does not have any plan to support Windows. I mean you can still use GCC on Windows using MinGW. On the other hand, Clang supports Windows natively.
We can go on and on and compare them on the basis of Open source licenses, Code complexity generation,and bla bla bla.
But what matters here is •
Language Independent Type System – Clang Vs GCC makes perfect sense under this heading. Since Clang/LLVM uses a language-independent type system for all supported languages, the exact semantics of instruction can be determined. GCC does not have the design goal of a language-independent Type system.