Try to compile a program using GCC in a Linux environment and verify that the-E\-S\-C option

Source: Internet
Author: User

    1. First, go to the Linux platform:

650) this.width=650; "style=" WIDTH:657PX;HEIGHT:369PX; "title=" capture. PNG1. PNG "src=" http://s3.51cto.com/wyfs02/M00/74/F4/wKioL1YvRAThvYnjAARbyYVj2YE392.jpg "width=" "height=" 666 "alt=" Wkiol1yvrathvynjaarbyyvj2ye392.jpg "/>

2. Double-click Terminal to enter:

650) this.width=650; "style=" width:679px;height:321px; "title=" capture. PNG2. PNG "src=" http://s3.51cto.com/wyfs02/M01/74/F4/wKioL1YvRH6DlooGAAI1VcJg7wQ100.jpg "width=" 1160 "height=" "alt=" Wkiol1yvrh6dloogaai1vcjg7wq100.jpg "/>

3. In the command Vim test.c, enter the new file test.c, and write a simple C language program yourself:

650) this.width=650; "style=" width:711px;height:374px; "title=" capture. PNG3. PNG "src=" http://s3.51cto.com/wyfs02/M01/74/F7/wKiom1YvR7KgRe1-AAKo4gRPx80583.jpg "width=" 942 "height=" 366 "alt=" Wkiom1yvr7kgre1-aako4grpx80583.jpg "/>

4. Enter the command separately:

ESC:W Q!

These 5 commands go back to the compile page, and if you want to modify it, you can enter the command vim test.c Enter, enter command i or a command

5. Input command gcc-s test.c preprocessing

6. Input command Gcc-c test.c pre-compilation processing completed

7. Enter the command./test

8. Program Operation:

650) this.width=650; "title=" capture. PNG6. PNG "src=" http://s3.51cto.com/wyfs02/M02/74/F7/wKiom1YvScnzfzifAALA8Dksd_I587.jpg "alt=" Wkiom1yvscnzfzifaala8dksd_i587.jpg "/>

Try to compile a program using GCC in a Linux environment and verify that the-E\-S\-C option

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.