How to correctly run the C ++ Compiler

Source: Internet
Author: User

In the following article, we will mainly learn about the C/C ++ compiler and some other compilers, including other compilers such as JAVA, Fortran, and ADA. It is a set of compilers, but some compilers can only be used on UNIX systems.

Gnu c ++ is an open-source C ++ compiler. GCC3.3 provides 96.15% support for standardized C ++. It is worth mentioning that gcc is the gnu c Compiler, g ++ is the gnu c ++ Compiler, and egcs (Enhanced GNU Compiler Suite) can be considered as the gcc Compiler version.

Currently, gcc has changed its name from gnu c Compiler to GNU Compiler Collection. MinGW or Cgywin is a gnu c/c ++ compiler and library file on windows, runtime Environment collection Borland C ++ this compilation is known for its high speed and high space efficiency. Its version 5.5 provides 92.73% support for standardized C ++, while the official version 100% complies with ANSI/iso c ++ and C99 standards.

It is developed by Borland and is the background compiler of Borland C ++ Builder and Borland C ++ Builder X. Visual C ++ VC ++ 6.0 is only 83.43% compatible with standardized C ++. It is the background C ++ compiler of Visual Studio, Visual Studio.net 2002, Visual Studio.net 2003, and Visual Studio.net 2005. With the introduction of Stanley Lippman and other compiler design Masters, it has become very mature and reliable. Visual C ++ 7.1 has 98.22% compatibility with standard C ++.

In the GCC family, gnu gcc is fundamental, and other compiler versions are exported from it. Among them, Cygwin and Mingw32 are both compilers on the WIN32 platform, while DJGPP is a 32-bit compiler under DOS. The well-known DEV-C ++ is at best a shell of GCC, and its built-in compiler is a version of Mingw32.

Among these GCC versions, Cygwin is the largest. It is not so much a compiler as a programming tool. It not only has compilers, but also has many other tools. In fact, it is the implementation of a UNIX System on the WIN32 platform. Most commonly used UNIX tools are implemented. In recent versions, "Tools" such as Apache are integrated. However, although Cygwin is powerful, it is not very easy to use and UNIX is similar, people familiar with UNIX can use it quickly), because too many other tools distract people's attention.

Compared with Mingw32, Mingw32 is much easier to use. It has only a few basic programming tools, but it does not come with GDB ). GCC is not only a C/C ++ compiler, but also many other compilers such as JAVA, Fortran, and ADA. It is a set of compilers, but some compilers can only be used on UNIX systems. The compiler of the MS family is not required. Everyone is familiar with them. VC 7.0 (VC. NET) is its latest product. Needless to say, the Borland family is also familiar to everyone. Recently, it launched BCB 6.0.

Other compilers, such as Intel C/C ++, are known to be Intel at first glance. It is fully compatible with VC6, but can only be used when it is attached to VC6. Watcom C/C ++ was a member of the four-nation compiler war earlier. It was a good thing. Unfortunately, the strategy is wrong, and now it's gone. An OpenWatcom based on it is still fighting. VectorC is a good stuff that I recently discovered. It is a pure C compiler. IBM's VisualAge for C ++ was originally something IBM wanted to use for the C ++ compiler, but IBM's strategy was changed and it was abandoned.

Symantec C ++, the predecessor of DigitalMars C/C ++, is also a member of the four major compiler wars, so the author changed it to DigitalMars C/C ++ for use. All of the above are on the WIN32 platform.

  • Looking forward to the new features of Visual C ++ in VS2010
  • Exploring Visual C ++ 6.0 features
  • How to embed Python into C ++ applications?
  • Are programmers really inseparable from the C/C ++ language?
  • Introduction to advantages of Visual C ++

Kai c/C ++ is a powerful C/C ++ compiler with multiple platforms. However, it has been acquired by INTEL and has stopped development. Lcc4.1 is a pure C compiler. It is open source code. But it is not easy to use. LCC-WIN32 is a C language on the basis of the development of the C language integrated development environment, very easy to use, and there are very detailed information, FREE! Pacific C is an integrated development environment for pure dos c. Small C CC386 is an open-source compiler, which is very simple and used to learn compiler.

Quincy Eic CINT is a C interpreter. It is used to help you learn about C language. CINT is powerful and supports some C ++ features. Of course, there are many other compilers. Here the compilers I provide can be used on WIN32 or DOS platforms except for KAI ). The compilers on UNIX platforms are mainly GNU, and I am not very clear about the others.


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.