C and C++ project compilation tools are briefly introduced

  • 2020-06-23 01:28:14
  • OfStack

Based on the perspective of a developer who needs to compile and generate solutions for the C family of projects, this article provides a brief glossary of the tools needed in the compilation process.

[

GCC | LLVM provides the compiler < -- GNU Make compiles from the configuration file < Autoconf | CMake generates the compiled configuration file automatically

]

Note: The collections and tools mentioned above do more than that.

GCC | LLVM

GCC and LLVM are the two toolchains we use most often when compiling C series projects.

The full name of GCC is GNU Compiler Collection, which is GNU compiler collection.

The full name for LLVM is LLVM (originally a shortened form of Low Level Virtual Machine, but the meaning has changed) and is now used as one of the compilers and toolchains of LLVM.

gcc, full name GNU C Compiler, C compiler in GCC;

g++, full name GNU C++ Compiler, is the C++ compiler in GCC.

Clang is the C compiler and tool chain in the front end of the LLVM collection. Clang is compatible with GCC, Clang appears later than GCC, compared to GCC, Clang compilers faster, error friendly.

GNU Make

When the number of source files of the project is very large and the structure is 10 minutes complex, it will be 10 minutes tedious to just use the compiler to compile the project. It will be 10 minutes tedious to refer to the header file directory, introduce the source file, and introduce the third party static library.

GNU Make can generate the intermediate target files and executables required by the project by selecting the appropriate source files in the project based on the compiler provided earlier. The developer directs GNU Make to compile by writing a file called makefile.

Autoconf | CMake

Autoconf is an extension of the m4 macro processing package that allows you to generate a script that automatically generates the compiled configuration file. Autoconf and Automake are 1 pair.

CMake is an open source software developer who guides the compilation process of a project by writing a platform - and compiler-independent configuration file.

There are many concepts involved in Autoconf, the steps to generate scripts are tedious, and CMake is simpler to use.

Refer to the link

LLVM

GCC,the GNU Compiler Collection

GNU Make

diff between gcc and g++

Programming Languages Supported by GCC

Clang

CMake

Autoconf

Above is the introduction of all the knowledge content, I hope this site to organize the content can help you, if there are other steps can contact the site below.


Related articles: