0% found this document useful (0 votes)
80 views

In This Chapter, We Are Going To Learn How To Setup C Development Environment Using

This document discusses setting up a C development environment using the DevC++ tool. It covers what a C compiler is, lists some common C/C++ compilers for Windows and UNIX/Linux systems, and provides steps to install and use DevC++, including downloading, installing, configuring environment variables, creating a sample C project, compiling, and running a simple C program.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

In This Chapter, We Are Going To Learn How To Setup C Development Environment Using

This document discusses setting up a C development environment using the DevC++ tool. It covers what a C compiler is, lists some common C/C++ compilers for Windows and UNIX/Linux systems, and provides steps to install and use DevC++, including downloading, installing, configuring environment variables, creating a sample C project, compiling, and running a simple C program.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

In this chapter, we are going to learn how to setup C development environment using

DevC++ tool in your machine and how to compile and execute a C program by your own.
Below topics are covered in this page.
1.
2.
3.
4.

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

Note:

Nowadays, both C and C++ compilers are integrated


development environment.
For example, Turbo C++, Borland C++ and DevC++
Development Environment with compiler for both C and
language.
So, we can compile and execute both C and C++ programs
Development Environment (IDE).

together in same
provides Integrated
C++ programming
in same Integrated

1. What is C compiler?
o
o

o
o

o
o
o
o
o

C Compiler is a program that converts human readable code into machine


readable code. This process is called compilation.
Human readable code is a program that consists of letters, digits and
special characters that we type in program window. Machine readable
code is in 0s & 1s
For example, lets assume that we type HELLO in program window.
We know that we have typed HELLO in program window.
But, processor knows only 01001000 for letter H, 01000101 for letter
E, 01001100 for letter L, 01001100 for letter L, 01001111 for letter
O
Because, all C programs are executed by processor which is available in
CPU.
So, entire C source code should be converted into 0s and 1s as processor
can understand only 0s and 1s.
So, compiler converts entire source code into 0s and 1s during
compilation.
Output produced by compiler is in the form of 0s and 1s which is saved
in .exe file. This file is called as executable or binary file.
This binary file is executed by processor as per logic written in source
code and the output is displayed in output window.

2. List of C/C++ compilers for Windows:

There are so many compilers available in market for Windows operating system. We
are listing some of them here for your reference.
1.
2.
CCS
C
3.
4.
5.
6.
Digital
7.
GCC
8.
MikroC
9. Portable C Compiler, Power C, QuickC, Ritchie C Compiler, Small-C

AMPC
Compiler
ch
clang
Cygwin
mars
compiler
Compiler

3. Steps to install Dev C++:


Dev C++ is a free C & C++ IDE (Integrated Development Environment) for
Windows and Linux. It supports 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 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 Next button and I Agree button.

6. Choose the destination folder as C:\Dev-Cpp (It is there by default) and click
Install button and finally click 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 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 done with 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 box.

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

11. Click on 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 in 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.

You might also like