Differences in performance between different C ++ Compilers

Source: Internet
Author: User

C/C ++ compilers in C ++ are divided into many types and each has its own advantages and disadvantages. But what are the hottest C/C ++ compilers on the interface? What C/C ++ compilers are most popular in linux, windows, and dos? After reading this article, you will know.

I am mainly engaged in programming in windows, so I usually use vc to compile. After all, it is a product that is the dominant software in today's world. I naturally don't have to ask about its performance and functions. That is, the Compilation speed is a little slow. Therefore, when I write a small program, I have an lccC/C ++ compiler. The performance is good, and the compilation speed is extremely fast.

In addition, I think vc may not be a good C/C ++ compiler for beginners, because mfc encapsulates all program execution mechanisms in its class. The code may be unknown for beginners. But it is good for beginners. It is a standard sdkC/C ++ compiler. The program running mechanism and message processing mechanism are clearly written.

I mainly use these two C/C ++ compilers. Others are rarely used, so I dare not evaluate them. Please comment.

 
 
  1. The GCC family has
  2. Cygwin
  3. Mingw32
  4. DJGPP
  5. Dev-C ++ (Mingw32)
  6. There are also authentic gnu gcc 2.95.5 ~ 3.0.0.4
  7. MS family has
  8. MSC 5.0, 6.0, 7.0
  9. MSQC 1.0, 2.5
  10. MSVC 1.0, 4.2, 6.0, 7.0
  11. Borland has
  12. TC 1.0, 2.0
  13. TC ++ 1.01, 3.0
  14. BC 3.0, 3.1, 4.0, 4.5, 5.0, 5.02
  15. BCB 3.0, 5.0, 6.0
  16. Others include
  17. Intel C/C + + 5.0
  18. Watcom C/C ++ 11.0, 11.0c
  19. VectorC 1.3.3
  20. IBM VisualAge for C ++
  21. DigitalMars C/C ++
  22. Kai c/C ++ 4.03f for RedHat 7.2
  23. Lcc4.1
  24. LCC-WIN32 2001-09-25 ~
  25. Small C
  26. CC386
  27. Pacific C
  28. In addition, there is a C interpreter.
  29. Quincy
  30. Eic
  31. CINT

I have used most of the C/C ++ compilers/interpreters mentioned above. Currently, VC7.0 Cygwin Mingw32 VectorC and LCC-WIN32 are fixed for these five C/C ++ compilers. In the GCC family, gnu gcc is fundamental, and other C/C ++ compiler versions are exported from it. Cygwin and Mingw32 are both C/C ++ compilers on the WIN32 platform. DJGPP is a 32-bit C/C ++ compiler under DOS. The well-known DEV-C ++ is only a shell of GCC at best, and its built-in C/C ++ compiler is a version of Mingw32.

Among these GCC versions, Cygwin is the largest. It is not so much a C/C ++ compiler as a programming tool. It not only has a C/C ++ compiler, 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 just a C/C ++ compiler.

There are many other C/C ++ compilers such as J *** A, Fortran, and ADA. It is a set of C/C ++ compilers, but some C/C ++ compilers can only be used on UNIX systems. The C/C ++ compiler of the MS family is not required, and 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 C/C ++ compilers, such as Intel C/C ++, are fully compatible with VC6, but it can only be used if it is attached to VC6. Watcom C/C ++ was a member of the four-nation war of C/C ++ compiler earlier. It was a good thing. Unfortunately, the strategy is not correct. An OpenWatcom based on it is still fighting.

VectorC is a good stuff that I recently discovered. It is a pure C/C ++ compiler. IBM's VisualAge for C ++ was originally something IBM wanted to use for C ++ C/C ++ compilers. But after IBM's strategy was changed, it was abandoned. Symantec C ++, the predecessor of DigitalMars C/C ++, is also a member of the C/C ++ compiler battle, so the author changed it to DigitalMars C/C ++ for use. All of the above are on the WIN32 platform.

  • Discussion on modular implementation of C Language
  • How to inherit C ++ classes
  • Introduction to object-oriented programming in C ++
  • How to define C ++ Data Types in C ++
  • Is C ++ really complicated?

Kai c/C ++ is a very powerful C/C ++ compiler. It is a multi-platform C/C ++ compiler. However, it has been acquired by INTEL and has stopped development. Lcc4.1 is a pure C/C ++ compiler. It is open source code. But it is not easy to use. LCC-WIN32 is a C language integrated development environment developed on the basis of.

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 C/C ++ compiler, which is very simple. It is used to learn C/C ++ compilers. 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.

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.