Subscribe:

Ads 468x60px

Senin, 15 November 2010

INTRODUCTION TO C LANGUAGE

1. Preliminary

C is a powerful programming language and the flexibility that has been widely used by professional programmers to develop programs that vary widely in various fields. But before you learn more about the C language and its implementation, you should know in advance the components and basic knowledge of computer programming knowledge.

2. What is a Compiler?

Compiler can be interpreted as a translator, means the collection of program code written in a particular programming language will be translated by a compiler into assembly language, which would then be translated back into the object code so that the commands will be controlled by the computer (in this case the machine).
A compiler only recognizes certain languages ​​in accordance with what has been created by the creators of such compiler.

3. Doing Compilation Program code

Computers do not know the meaning of program code written in C language because the computer only understands binary instructions, known as machine language. Thus it is necessary to other programs in order to translate the program code into machine language. Programs such as this is known as a compiler.
Compiler will accept the input code and the program will generate a code object to be stored in a file object. In the Windows operating system, this object will usually file extension .c, whereas in Unix or Linux operating systems in general, object files will be ending .o (by default in Linux would generate a.out file)



4. Linking Process

Last process contained in the formation of an executable file or files that can be run on a computer is the process of linking. This process will be done internally at the time of the compilation process is completed.
For example on programs that use the function printf () which is a library function that has been provided by the compiler in a file . Therefore, the object files generated from the compilation will be combined or linked with the object code of the library function concerned. This is called the linking process. The process of this kind carried out by a program called the linker.


Note: you can use Notepad or Notepad + +
{if you use notepad + +, select the type of language used (C)}



Download Notepad++ ver.5.8.installer

0 comments:

Posting Komentar

Quote of the Day

if we plant the rice then it is definitely going to grow grass
but if we do not expect to plant grass to grow rice

if we do that then the world will follow hereafter
but if we do that the world then the afterlife will not participate

Followers