[Ticpp 2nd exercise] [02] [Select the appropriate compiler]

xiaoxiao2021-04-07  379

Title: [TICPP 2nd Exercise] [02] [select the appropriate compiler] Author: Jack Yang Date: 2006/06/22 Status: Unfinished

Before starting doing exercises, a thing you must make is to choose a suitable compiler. The standard is the standard that this compiler must support C ISO standards as much as possible.

Below is the evaluation made by Bruce Eckel on the W32 compiler http://mindview.net/books/ticpp/thinkingincpp2e.html#compilers

Win32 compilers

The code in these books has been written to compile under a fully- compliant ISO C (Standard C ) compiler. A command-line version of the Borland C compiler is available as a free download. This compiler is not fully compliant with all standard C features; you can find the files that it will not compile (which are excluded from the makefiles) in the file CompilerData.txt which comes with the distributions While old Visual C is not so good, the new Microsoft C for .NET. IS VERY GOOD. The Free Digital Mars Compiler is Also Very Good.

The open-source GCC compiler (g ) is one of the most compliant C compilers available. This compiles and runs very well under Linux, but you can also run it under Win32 using Cygwin at http://www.cygwin.com/, which is gcc the bash shell and gnu utilities ported to Windows If you've ever used Unix, Cygwin will give you back what you missed -. it's truly remarkable you can actually compile and run virtually any non-gui Unix application under. Cygwin. IT Solves All The Problems of Trying to Use make under Win32.

To Learn More About Installing Cygwin and GCC on Your Win32 Machine, See Here.

A note about pre-.NET Visual C . I periodically receive messages saying that Visual C will not compile many of the programs in the book. Let me attempt to be diplomatic here. Before .NET, Microsoft stated that what they are creating is " a Windows compiler. "Their interest was in creating a compiler that makes Windows programs, and not one that is compliant to the C Standard. As a result, the Standard C features in pre-.NET VC increased at a relative crawl, and you should not expect that compiler to compile many of the programs in the book. The complete listing of files that will not compile can be found in the file CompilerData.txt in both volumes.If you find a problem with a program and pre-.NET VC , IT IS Extremely LIKELY That IT IS A Deficiency In VC and not in the code listing. A Microsoft Makefile IS include That Will SuccessFully Compile All Possible Programs in the book.

So the UpShot IS this: if you want to use Microsoft C , Choose Managed C for .NET.

Here Is A File Msfix.h Which Was Created by Chuck Allison To FIX THE RETURN From Main Warning and The for loop Namespace Scope Issues in The Visual C Compiler. [Click Here to Download]

It can be seen from which the Bruce Eckel believes that the compiler has 1. MS is a new version of the C compiler developed by the .NET platform 2. Digital Mars Compiler (Free) 3. Open source GCC compiler (G ) weigh again, ready to use G And with Cygwin. So the next work is to set the related environment of CygWin and G .

转载请注明原文地址:https://www.9cbs.com/read-132506.html

New Post(0)