Write C Programs (GCC) in Linux)

Source: Internet
Author: User
It is easy to write C Programs in windows. You can simply install TurboC. I believe everyone who has learned programming knows TurboC very well. Especially when everyone in the university is busy with grading, the second-level C language is probably the default grade exam that everyone has taken. But how to write C Programs in linux? In fact, it is easy to write C in linux. IDE, you can use eclipse to integrate the CDT module. Of course, this is a heavyweight, just like VC ++ in windows. Is there any image?

It is easy to write C Programs in windows. You can simply install Turbo C. I believe everyone who has learned programming knows Turbo C very well. Especially when everyone in the university is busy with grading, the second-level C language is probably the default grade exam that everyone has taken. But how to write C Programs in linux? In fact, it is easy to write C in linux. IDE, you can use eclipse to integrate the CDT module. Of course, this is a heavyweight, just like VC ++ in windows. Is there any small tool like Turbo C, which is mainly used for its compilation function. Well, this is what we want to talk about GCC this time.

According to the definition on wikipedia (google), GCC (GNU Compiler Collection, GNU Compiler set) is a programming language Compiler developed by GNU. It is a key part of GNU toolchain and a standard compiler for open-source Unix-like operating systems.

The process of GCC and Turbo C is similar. The process of generating executable files from C source code files is not only a compilation process, instead, we need to go through four interrelated steps: Preprocessing (also called Preprocessing), Compilation, Assembly, and Linking ). Therefore, we can basically say that if I have used Turbo C, it is easy to get used to GCC.

Now let's write a simple program. First, install GCC. If you are using Ubuntu, enter the following command in the terminal to install GCC.

Sudo apt-get install 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.