What is GCC?
Gcc stands for GNU Compiler Collection, which is a collection of compilers, supporting multiple programming languages.
As well as being the official compiler of the GNU operating system, GCC has been adopted as the standard compiler by many other modern Unix-like computer operating systems, including Linux and the BSD family, although FreeBSD and macOS have moved to the LLVM system.
Simply put, GCC = Compilers
What is MinGW?
MinGW, a contraction of “Minimalist GNU for Windows”, is a minimalist development environment for native Microsoft Windows applications.
In a word, MINGW = GCC Lite
Use MinGW
to use GCC.exe anywhere in the CMD, add its path into environmental variables
GCC commands:
gcc filename1(.c) filename2(.c)... -o[name]
//list all warnings
gcc -Wall
Example
- Edit source file
- save as .c file and compile it
gcc HelloGCC.c -o HelloGCC -Wall
- produce exe file and run it!
That is it! Happy Programming!