C++ Compiler Notes


Quick Links

If you already know about the compilers for this class, select from the quick links below. Otherwise, read the notes that follow them first.


Notes

A compiler is a program that translates source code into object code (machine language instructions). Students in this course have many different compilers available to choose from. You are not locked into any one choice, although you might find it easier to learn just one in the beginning and then evaluate others when you are comfortable working with your first choice. The following issues will affect your decision:

The list below describes a few compiler choices typically made by students in this course.

Students registered in face-to-face sections of the course will have the opportunity to practice downloading and installing Dev C++ software in the classroom. Distance learning students who require assistance beyond the posted tutorials can visit my office during office hours or receive help on the phone. If desired, students can then download and install the free software on their own computers and work on their program coding projects at home. Alternatively, students can come into the computer labs during their posted hours of operation and use the Microsoft Visual C++ software on the lab computers.

Many C++ compilers can be found on the Web. The language is highly "transportable", meaning that it can run on many different hardware platforms. For this reason, you often find the compiler software stored in its original source code rather than as an executable program written for a specific computer. In such circumstances, after downloading the software you have to know how to prepare it for execution on your own style of machine. The easier alternative is to find an executable version of the compiler that has already been prepared for your style of computer and operating system (such as Windows 7 or Linux) and download that. Macintosh users should look at the [Macintosh Programmer's Workshop (MPW)], a comprehensive collection of development tools designed to support C, C++, and assembly-language programmers who are writing software for Mac operating systems.

Remember that you can author your C++ source code using any text editor (such as Windows Notepad), as long as you save the file in ASCII ("text") format with a filename extension of ".cpp". A compiler is required only to translate and link your code into an executable program. This can be done after your source code is written and saved on a storage device.

Return to the top of this page to select a quick link.

PATH: Instructional Server> COP 2000>