Basic steps for Linux system--c Language Program development (basic steps including GCC)

Source: Internet
Author: User

1, use VI or VIM to write program files

2. Use GCC to translate all source files into computer-aware format (compilation)

3. Use the./a.out executable file as command execution

Working steps for the GCC compiler:

1. Handle all pre-processing instructions

2, the first step of the processing structure translated into computer-recognized format (compilation)

3. Merge the results of the second part into the final executable file (link)

GCC options:

-E only handles all preprocessor directives

-C only completes preprocessing and compilation (no links are compiled)

The processing result is a target file with an. o as the extension

-O is used to determine the name of the resulting file to be compiled.

-std=c89/-std=c99

Used to decide to compile with that version of the specification

The C89 specification is used by default

Basic steps for Linux system--c Language Program development (basic steps including GCC)

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.