Basic Steps for c and c ++ development in linux

Source: Internet
Author: User
Basic Steps for c and c ++ development in linux-general Linux technology-Linux programming and kernel information. For more information, see the following. Basic steps:

1. The Preprocessing Program performs macro extension and conditional processing on the c or c ++ source files, imports the leading files, and generates files suffixed with. I;

2. The compiled program converts the c and c ++ source codes in the pre-processed files (*. I) into the assembly language code to generate an assembly file suffixed with. s;

3. the assembler converts the assembly language code in the Assembly file (*. s) into the target code (machine code, *. o) and generates the target file suffixed with. o;

4. The connection program connects the target file (*. o) with the specified library file to generate an executable file.

Unless otherwise specified, gcc and g ++ will automatically call the preceding tool to generate executable files.

The above content is excerpted from linux/unix advanced programming, edited by Hongqi zhongke Hongqi Software Technology Co., Ltd., and published by Tsinghua University Press.
Related Article

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.