Search This Blog

Thursday, March 8, 2012

Stages in Creating a C program


Stages in Creating a C program


1. Designing

2.Coding

You must first create a file which contain the C source code. For this you may use any text editor. The file name could be any legal name accepted by the DOS / UNIX and must have an extension of C.
E.g. pro1.c


The source code that you enter must obey the structures, the syntax and semantics of the C language.

3.Compiling

The C compiler receives the source code from the pre-processor and translates it in to assembly code.

 4.Assembling

The assembler creates object code. In MS-DOS the object files are seen with .obj extension


5.Linking

If a source file references library functions defined in other source files, the link editor combines these functions with main() to create an executable file (.EXE)


No comments:

Post a Comment