Original by Bai Qiao: Visual C ++ is not the only C ++ compiler.

Source: Internet
Author: User
Original by Bai Qiao: Visual C ++ is not the only C ++ compiler-general Linux technology-Linux programming and kernel information. For details, see the following. C ++, as a high-level language, must compile the source program to convert it into a machine language target program. The compiler used to compile the C ++ source program, that is, the C ++ compiler (compiler ). Interestingly, there are many types of C ++ compilers. However, since the C ++ language is too complex and has evolved for a long time, only a few compilers have yet to fully comply with the C ++ standard. The following lists some common C ++ compilers.
1. Visual C ++
Visual C ++ is the C ++ compiler included in Microsoft Visual Studio and Microsoft Visual Studio. NET200X (including 2003, 2005, and 2008). It was developed by Microsoft. In Visual C ++ 6.0, the compiler has been criticized for being unable to match the later C ++ standard. Visual C ++ 6.0 is only compatible with standard C ++ 70% (some numbers indicate lower compatibility ). However, with the addition of StanleyLippman, the C ++ compiler design master, and many cool people in the C ++ community. in NET 2003, the visual C ++ compiler has become a very mature and reliable C ++ compiler. The evaluation of Dr. Dobb's Journal shows that Visual C ++ 7.1 is compatible with standard C ++ by up to 98.22%.
2. Borland C ++
This is the background compiler for Borland C ++ Builder and Borland C ++ Builder X. BorlandC ++ is built by Borland, a veteran development tool vendor. The company's compilers have always been known for their high speed and high space efficiency. BorlandC ++ series compilers adhere to this tradition and are very high-quality compilers. In terms of standardization, the compatibility with standardized C ++ reached 5.5 as early as 92.73% compilers. Currently, the latest version is Borland C ++ Builder X version 6.0, which officially complies with ANSI/iso c ++ and C99 standards.
3. gnu c ++
GNUC ++ is a well-known open-source C ++ compiler and is the first choice for compiling C ++ programs in UNIX-like operating systems. It features excellent portability. You can use it on a very wide range of platforms, and it is also a good choice for writing cross-platform embedded programs. In addition, GCC has always been very good in terms of compliance with standards, and GCC3.3 can reach about 96.15%. However, due to its cross-platform features, the code size and speed are slightly reduced.
4. Intel C ++
Intel C ++ is a compiler developed by Intel, a famous CPU manufacturer. It has been specially optimized for Intel x86 CPU. In some application cases, especially high-performance applications such as numerical computing, only compiling with Intel compiler can greatly improve the performance.
If the above relationship is represented by a UML class diagram, it is-1. Among them, Visual C ++ 6.0 was proposed separately because it is very short and concise, and has always been popular with Visual C ++ programmers.


[Img = 343,281] http://images.51cto.com/files/uploadimg/20090702/1118130.jpg#/img]


For example, the following is a program that complies with the standard C ++ Syntax:


(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // images.51cto.com/files/uploadimg/20090702/1118131.jpg'); ">
However, it cannot be passed in Visual C ++ 6.0. On the contrary, programs passed in Visual C ++ 6.0 may also fail in other standard C ++ compilers. More serious problems are reflected in Visual C ++ 6.0's support for templates and STL. The consequences are basically a mess. However, compared with the subsequent Visual Studio. NET versions, Visual C ++ 6.0 is a classic of Microsoft, and many applications are still using Visual C ++ 6.0.

========================================================== ===


(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // book.vcer.net/images/vcmap-s.gif'); ">
The above from the "pulse VC ++" section 2.1.1 content, if you want to communicate with me, please click the following link to add me as a friend: http://student.csdn.net/invite.php? U= 113292 & c = 8913f87cffe7d533

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.