In this chapter, we are going to learn Environment Setup using IDE in C development environment using DevC++ tool in your machine and how to compile and execute a C program on your own. Below topics are covered on this page.

  1. What is C compiler?
  2. List of C/C++ compilers for Windows Operating System
  3. Steps to install DevC++ tool to compile and execute C programs
  4. List of C/C++ compilers for UNIX/LINUX Operating System

Note:

1. WHAT IS C COMPILER?

2. LIST OF C/C++ COMPILERS FOR WINDOWS:

There are so many compilers available in the market for Windows operating system. We are listing some of them here for your reference.

1. AMPC
2. CCS C Compiler
3. ch
4. clang
5. Cygwin
6. Digital mars
7. GCC compiler
8. MikroC Compiler
9. Portable C Compiler, Power C, QuickC, Ritchie C Compiler, Small-C

3. STEPS TO INSTALL DEV C++:

Dev C++ is a free C & C++ IDE (Integrated Development Environment) for Windows and Linux.  It supports the compilation and execution of C & C++ languages. It is available with GCC compiler which is used to compile both C and C++ programs.

You can follow the below steps one by one to install Dev C++ in your local machine and you can start compiling and executing C programs.

1. Download Dev-C++ IDE from http://www.bloodshed.net/dev/devcpp.html

2. Click on source forge link under “Downloads -> Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC

3. Save the .exe file in your local machine.

4. Double click on the exe file.

5. Start the installation by clicking the Next button and I Agree on button.

6. Choose the destination folder as “C:\Dev-Cpp” (It is there by default) and click the “Install’ button and finally click the Finish button. You can modify this destination folder path if you want.

7. Once installation is completed, go to your desktop and right-click on My Computer -> properties -> advanced system settings -> advanced tab. Then, click on the “Environment Variables” button and then “New”. You will get a popup window as shown below.

Change the System variable as given below.

Variable name: PATH
Variable value: C:\Dev-Cpp\bin;

8. Once you are done with the above settings, then you can start Dev C++ by clicking start –> Dev C++ as shown below.

9.Open Dev C++ window and click on file -> new -> project. Then, select Console Application. Choose “C project” and “Make Default Language” check boxes.

10. Click on file -> new -> source file and type a sample program and save it as sample.c

11. Click on the “Compile & Run” button to compile and execute our program as shown below.

12. Output window will be opened as below when there is no compilation error. Use “Enter” button to come back to the program window.

4. LIST OF C/C++ COMPILERS FOR UNIX/LINUX OPERATING SYSTEM:

There are so many compilers available on the market for UNIX/LINUX operating system. We are listing some of them here for your reference.

1. AMPC
2. CCs C compiler
3. ch, clang
4. GCC C compiler
5. Interactive C compiler
6. Mikro C compiler
7. Portable C compiler
8. Small C and XL C Compilers etc.

Leave a Reply