首页 > 代码库 > About C

About C

1. The virtues of C

    1) Efficiency

    2) Portability

 3) Power and Flexibility

   4) Power and Flexibility

   5) Programmer Oriented

2. Shortcomings

 

  1) C‘s use of pointers,in particular, means that you can make programming errors that are difficult to trace.

     2) C‘s conciseness, combined with its wealth of operators, make it possible to prepare code that is extremely difficult to follow.

 

3.Using C: Seven Steps

         1): Define the Program Objectives

    2): Design the Program

         3): Write the Code

         4): Compile

         5): Run the Program

         6): Test and Debug the Program

         7): Maintain and Modify the Program

 

4.Programming Mechanics

About Object Code File, Executable Fiels, and Libraries

  object code file: it contains the translation of your source code,but it is not yet a complete program.It lacks of two elments, the first one is something called startup code, which is code that acts as an interface between your program and the operating system.And the second one is the code for library routines.It is part of the standard C library.

       executable file: a file containing ready-to-run machine language code.

       Libraries: A library file contains object code for many functions.

About linker: the role of the linker is to bring together these three elements—your object code, the standard startup code for your system, and the library code—and put them together into a single, the executable file.

 

 

 

    

About C