How Do You Compile A C Program Using The Gnu Compiler?
The Gnu Compiler Collection (GCC) software allows you to compile software programs written in a range of computer languages, including C, C++ and Java. Since the software is a free and open source, you can easily obtain a copy and, if you’re really ambitious, modify it to fit your programming needs. Get a copy of the GCC software and install it on your computer. The software and the documentation are freely available at the GNU website. Write your software code in C (or choose one of the other supported languages). Let’s say that your code is located in a file titled “Program.” Choose a correct file extension. GCC automatically compiles a program according to the language specified by the file extension. For the C language, use “.c” (as in “Program.c”). Select an output file name; you do not need to specify an extension. You may simply want your program to compile to the file name “Program.” Run the GCC software to compile your program. The command is “gcc -o Program Program.c” for com