C language environment setup
This topic relates to environment setup of C language. This article will help you to set up
environment for C language. However, for this you require text editor and a C compiler. This way it
will be easy for C environment online. You will learn steps for C programming environment for mac.
Even setup C programming environment windows is easy.
This topic relates to environment setup of C language. This article will help you to set up
environment for C language. However, for this you require text editor and a C compiler. This way it
will be easy for C environment online. You will learn steps for C programming environment for mac.
Even setup C programming environment windows is easy.
What is text editor in C?
You use text editor to type programs. Windows Notepad, EMACS, OS Edit command and vim are
some text editors. Other text editors include Epsilon, vi and Brief. You must also remember that
version and name of text editors will be different. Because it will depend on operating system.
You can see that on Windows, you use Notepad. However, on UNIX or Linux, you use either vi or vim.
Source files
source files are those files that you create in your text editor. It is so because these files have program
source codes. In addition, source files for C programs have ‘.c’ extension.
C compiler
As we explained about source files. We can read these files. But computer will not be able to read
them. So, compiling these files is necessary. Compilation will change source files language to machine
language. In this way, CPU will execute program. Moreover, it will only follow instructions.
Programmers use GNU C/C++ compiler to compile programs. As it is ‘free to use compiler’. However,
you may even use Solaris or HP compiler. To help you further, we discussed in detail installation
process. This will be helpful to set up C environment language.
Steps to install GCC on UNIX or Linux
You must first check the system. Whether GCC is there or not there. For that you must enter a
command. The command below will be helpful
If there is GNU compiler on the system. Then you will receive a positive reply. Because you can see a
message on the screen. In case, your system does not have GCC. Then do not worry.
Steps to install GCC on Windows
You must first install MinGW. This will help in installing GCC on Windows. Moreover, you can install
MinGW from official homepage. To go there click on http://www.mingw.org/
However, you must remember to install the latest version of MinGW installation program only. Most
importantly, you must install file with following name only. The name is MinGW-<version>.exe.
After this you should add bin subdirectory of MinGW installation. You have to add this to PATH
environment variable. This way specifying tools on command line will be easy. As you will refer them
by simple names only. Once installation of program is over. You can run G++, GCC, ranlib, dlltool, ar.
Even running other GNU tools from Windows command line is easy.
How to install GNU on Mac OS
Installing GNU on Mac OS is very easy. All you must do is go to Apple official website. After that you
can follow the instructions. Moreover, if you use Mac OS X then you must go
Thus, you now know about C language environment setup. Some people call it as object C set
environment variable. Or even objective C environment setup. However you must never forget C
environment setup steps.
No comments:
Post a Comment