menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

What is GN...
source image

Dev

2w

read

245

img
dot

Image Credit: Dev

What is GNU/GCC, Clang/LLVM

  • GNU is a collection of free software that can be used as an operating system or with other operating systems.
  • GNU implements POSIX standards and can be built with different kernels like HURD or run on Windows with WSL 2.
  • Linux can be combined with different user-land software, such as Android or Alpine.
  • GCC (GNU Compiler Collection) is a free and open-source collection of compilers from the GNU Project.
  • GCC is well-known for C, C++, and Fortran compilers and is used to compile source code into executable programs.
  • Clang is a compiler front end for C family languages that uses LLVM as its back end, serving as an alternative to GCC.
  • LLVM (Low Level Virtual Machine) is a modular compiler infrastructure used to build compilers and tools.
  • Clang handles lexical analysis, syntax parsing, and semantic analysis specific to C/C++/Objective-C/Objective-C++ languages.
  • LLVM's back end performs optimization and code generation, producing machine code for different CPU architectures.
  • Compiler Front End processes source code's language-specific aspects like lexical analysis and semantic checks.
  • Compiler Back End takes intermediate representation from front end and produces machine code through optimization and code generation.

Read Full Article

like

14 Likes

For uninterrupted reading, download the app