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