gcc Tutorial

What is gcc?

Gcc stands for gnu compiler collection. Gnu is a type of license for free, open source software. The majority of gnu software is for unix-based systems. A compiler is a computer program used to convert code into a file that the computer can execute. So gcc refers to a collection of Unix-based, free programs which convert source code into machine code. Our linux drives in the lab have a copy of gcc, along with several other compilers. On the Windows drives, we are using a program called mingw. Mingw stands for Minimalist Gnu for Windows. It is not gcc specifically, because it is not part of the gnu project. It is a full re-implementation of the gnu C and C++ compilers (the next section shows that gcc supports more languages) for the Windows operating system, and is used in the exact same way that gcc is used, keystroke by keystroke.

This tutorial assumes that the user understands how to work in a terminal window. In windows, the best way to open a terminal is to go to the start menu, select run, and type cmd in the resulting window. Due to the variation of Unix systems, there is no definite answer as to how to open a terminal window, but many environments will have an icon that looks like a computer screen that you can click to get a terminal window. In the lab, you will find such an icon in the lower left hand corner of the screen.

gcc Basics