2-1. Compiling and Linking

We should program into machine-executable form:

  • Pretreatment: preprocessor program to the preprocessor. Prepared execution beginning with # command.
    #include <stdio.h> this instruction described before compiling the information <stido.h> contains the program.
  • Compile: the modified program into the compiler compiler. The compiler will translate editor program instructions (object code).
    Under unix system environment, the C compiler named cc. cc -o option allows to select the file containing the executable name. eg: file pun.c generate an executable file -> cc -o pun pun.c 
  • link. Linker connectors together the object code, and other additional code required to form a complete executable programs.

Guess you like

Origin www.cnblogs.com/muzihuan/p/11272602.html