Tuesday 13 May 2014

C-Compiler

A compiler is a computer program (or set of programs) that transforms source code written in a programming language into another computer language (the target language, often having a binary form known as object code). The most common reason for wanting to transform source code is to create an executable program.
 In C language, there are different types of compilers.But we discuss only two type of compiler and also how it will be installed in the system.

1.GCC Compiler :
                       GCC used to stand for the GNU C Compiler, but since the compiler supports several other languages aside from C, it now stands for the GNU Compiler Collection.includes front ends for C, C++, Objective-C, Fortran, Java, Ada, and Go, as well as libraries for these languages (libstdc++, libgcj,...).

                                            Installation of GCC in Linux
To install the gcc package and kernel sources in the RHEL/Fedora/CentOS Linux distribution, enter the following command in a terminal:

0.First type in the console "gcc".If GCC is not install then.
1. To install it type: "sudo apt-get install gcc g++"
2. Accept the installation
3. Type in the console "gcc --version" and "g++ --version" for checking the version.

                                            Installation of GCC in Ubuntu
Enter the following command in a terminal:
      sudo apt-get update
      sudo apt-get install gcc-4.8 g++-4.8 //it install 4.8 version

                                         Installation of GCC in Windows
You can use cygwin software. It is an virtual terminal of linux. For downloading you go to www.cygwin.com  and install it OR you can download install MinGW from here.


 2. Visual C Compiler:

Visual C Compiler is given by Visual studio software.So download it and install Visual studio software


0 comments :

Post a Comment