How to choose C language compiler and IDE

Under Windows, most of the executable programs (Executable Program) are .exe programs, which are a collection of computer instructions and data. These instructions are in binary form and can be directly recognized by the CPU without obstacles; but for programmers, they are very obscure and difficult to remember and use.

In the early days of computer development, programmers used these binary instructions to write programs.

Directly using C ++ PU instruction programming is a nightmare for programmers, especially when the program is relatively large, not only is it troublesome to write, the instruction manual needs to be frequently consulted, but debugging is extremely distressing, and you have to face a bunch of binaries directly The data is dazzling. In addition, the programming steps with CPU instructions are cumbersome, and various boundary conditions and underlying issues must be considered, and the development efficiency is very low. This forced programmers to develop programming languages ​​and improve their productivity; for example, assembly, C, C ++, Java, Python, Go, etc., are gradually improving development efficiency. At this point, programming is finally no longer a thing that only geeks can do. Readers who do not understand computers can write programs that are both stylish and decent after a certain amount of training.

What is a compiler

The C language code is organized by a fixed vocabulary in a fixed format. It is simple and intuitive, and it is easy for programmers to recognize and understand. However, for the CPU, the C language code is a godsend book. This requires a tool to convert the C language code into a binary instruction that the CPU can recognize, that is, to process the code into an .exe program; this tool is a special software called a compiler (Compiler). The compiler can recognize the vocabulary, sentences, and various specific formats in the code, and convert them into a binary form that the computer can recognize. This process is called compile. There are many kinds of C language compilers, and there are different compilers on different platforms, for example:

Commonly used under Windows is cl.exe developed by Microsoft, which is integrated in Visual Studio or Visual C ++ and is generally not used alone;

Commonly used under Linux is GCC developed by the GUN organization, and many Linux distributions come with GCC;

Commonly used under Mac is LLVM / Clang (formerly GCC, but later changed to LLVM / Clang due to the incompatibility of GCC).

The syntax of your code is correct or not. The compiler says it. We learn C language, in a sense, it is to learn how to use the compiler and let the compiler generate executable programs (such as .exe programs under Windows). The compiler can guarantee 100% that your code is syntactically correct, because even if there is a small error, the compilation will not pass, the compiler will tell you what is wrong, so that you can make changes.

Choose the right IDE

In actual development, in addition to the compiler is a necessary tool, we often need many other auxiliary software, such as editor, debugger, file management, etc. These tools are usually packaged together, unified release and installation, such as Visual Studio, Dev C ++, Xcode, Visual C ++ 6.0, Code :: Blocks, C-Free, etc., which are collectively referred to as IDE (Integrated Development Environment).

01

Windows

There are many IDEs under Windows. I recommend using Visual Studio or Dev C ++; if your operating system is XP or Win7, you can also use C-Free. In addition, many domestic universities still use Visual C ++ 6.0 as a tool for C language teaching. â‘  Visual C ++ 6.0 (VC 6.0 for short) is a classic IDE developed by Microsoft. Many universities use VC 6.0 as a teaching tool to explain C and C ++. However, VC 6.0 is a product of 1998. It is very old. There will be various compatibility problems under Win7, Win8, and Win10, and it may not even run at all, so it is not recommended. â‘¡ Visual Studio (abbreviated as VS) is an upgraded version of Visual C ++ 6.0. It adds many new features and supports more languages. It is a standard IDE under Windows, and everyone is using it in actual development. However, VS is a bit huge. The installation package has 2 ~ 3G, which is inconvenient to download, and it will install many tools that are not used temporarily. The installation time is about half an hour. In order to adapt to the latest Windows operating system, Microsoft will upgrade VS every once in a while (usually one or two years). The different versions of VS are named after the release year. For example, VS2010 was released by Microsoft in 2010, and VS2017 was released by Microsoft in 2017. â‘¢ Dev C ++ is a free and open source C / C ++ IDE, with embedded GCC compiler (Windows port of GCC compiler), and is the designated tool for NOI, NOIP and other competitions. The advantages of Dev C ++ are small size (only a few tens of megabytes), easy installation and uninstallation, and low learning cost. The disadvantage is that the debugging function is weak.

NOI is the abbreviation of National Olympiad in Informatics, translated as "National Youth Informatics Olympiad"; NOIP is the abbreviation of National Olympiad in informatics in Provinces, translated as "National Youth Informatics Olympiad". NOI and NOIP are both a type of Olympic competition. Most of the participants are high school students, and the winners will be guaranteed to famous universities or get extra points for college entrance examination.

â‘£ C-Free is a domestic C / C ++ IDE under Windows. The latest version is 5.0. The entire software is only 14M. It is very light, easy to install, and its interface is more beautiful than Dev C ++. The disadvantage of C-Free is also the weak debugging function. It is a pity that C-Free has not been updated for many years, the components are old, and can only run under XP and Win7, and there may be compatibility issues under Win8 and Win10, so I mainly recommend Dev C ++, otherwise I will More inclined to C-Free.

02

Linux

Use GCC (GNU Compiler Collection, GNU Compiler Suite) under Linux. GCC is a free software developed by the GUN organization. In addition to supporting C, it also supports C ++, Java, Objective-C, etc. It is the de facto standard for Linux platform compilers.

03

Mac OS X

Use Xcode under Mac OS X. Xcode is an IDE officially developed by Apple and supports C, C ++, Objective-C, Swift, etc., and can be used to develop applications on Mac OS X and iOS. Xcode initially used GCC as a compiler, but later switched to LLVM / Clang due to GCC's mismatch.

Although there are many IDEs in C language, most of the contents of C language are common under each IDE.

Data Cable

Data Cable is the mobile cable with charge and data transfer. There are different phone cables including usb cable to lightning cable, to micro usb cable or to type c cable and usb c to iphone charging cable or usb c cable.


The usb data cable connects charger and Adapter with your mobile phone or tablet to do the charging and data transfer, which make our life easy and convenient. As most persons know, iphone is lightning connector, HUAWEI has usb c connector, android mobiles are micro usb connector, you need to use right usb to different connect cable for your phones when use.

Yidashun produces white and colorful phone cable with different connector or 2 in 1 cable with different materials like TPE, PVC, knit and nylon and so on. You have so many choices if working with us.

data cable, mobile cable, usb cable, type c cable, phone cable, charging cable

data cable, mobile cable, usb cable, type c cable, phone cable, charging cable



Data Cable,USB Data Cable,USB Charger Cable,Micro USb Cable

Shenzhen Yidashun Technology Co., Ltd. , https://www.ydsadapter.com