OPERATING SYSTEMSOS Linux

How to install mingw-W64 | GNU compiler | gcc compiler | step by step installation

===============What is GCC?===============
The GNU Compiler Collection, commonly known as GCC, is a set of compilers and development tools available for Linux, Windows, various BSDs, and a wide assortment of other operating systems. It includes support primarily for C and C++ and includes Objective-C, Ada, Go, Fortran, and D. The Free Software Foundation (FSF) wrote GCC and released it as completely free (as in libre) software.

=========GCC for Windows===========
GCC is the heart of the GNU toolchain, the development system used to compile most Linux and open-source software. While there are a few specialty distributions that omit GCC, you will find it in nearly every Linux system. The Linux kernel itself is primarily compiled with GCC. The Linux kernel and the GNU toolchain share such a long history that the Linux ecosystem is commonly called GNU/Linux.

===============GCC examples===============
Compiling a program with GCC can be a straightforward matter

gcc hello.c -o hello

Running this command processes the hello.c file and generates a binary called “hello”. Additional parameters can be passed.

source

by Subha Mondal

linux foundation