The development process of C language

Source: Internet
Author: User

Developing a C program typically requires a four-step process of editing, compiling, connecting , and running

1. Edit the source file: the edited generated file is stored as text, the source program file with the extension ". C" is stored in ASCII format without any formatting and style, and the computer cannot execute directly. Files saved in the Turbo C 2.0 environment, the default extension is ". C ". When you use the Windows Notepad software to edit the source program for C, note that the type of save file is "All Files" and the file Name column is "file name." C ".

2. Compile: The computer can execute a binary file, that is, 0, 1 code, so you need to translate C source program into a computer can recognize the binary form of the target code file, this process is called compilation. c Compile the compiler, but also the source program syntax and the logical structure of the program to check. If the compilation succeeds, the target file is generated, the file name of the homologous program, the extension ". obj", the generated target file is compiled, does not contain the library functions required for the program to run, and the computer still cannot be executed directly.

3. Connect the connection program to the target program and other target program modules, as well as the system-provided C library functions, such as the process of building the executable file, called "Connection." The file name of the executable file to which the connection was generated is the same as the filename of the program, with the extension ". exe", which connects the generated executable file and the computer can execute directly.

4. Run in a DOS environment directly type the executable file name of the C program, select the "Run" command in the integrated environment of C, or double-click the executable file name in Windows Explorer to get the running result. If the running result is wrong, need to re-edit the source program, then compile, connect, know to get satisfactory results.

The development process of C language

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.