15.04.2018 Views

programming-for-dummies

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

90<br />

Finding an Interpreter<br />

The Mac OS X operating system is much less common than Windows, so you<br />

can choose from far fewer free compilers. However, Table 4-2 lists some Mac<br />

OS X compilers that you can use <strong>for</strong> free.<br />

Table 4-2<br />

Free Mac OS X Compilers<br />

Compiler Name Programming Language Where to Find It<br />

Xcode C, C++, Objective-C http://developer.<br />

apple.com/tools/xcode<br />

GNU Pascal Pascal www.gnu-pascal.de<br />

Free Pascal Pascal www.freepascal.org<br />

The original Macintosh operating system was written in Pascal, but the<br />

newer Mac OS X operating system is written in Objective-C.<br />

Because Linux is free, most Linux compilers are free as well. Table 4-3 lists<br />

some popular free Linux compilers. The REALbasic Linux compiler is free, but<br />

if you want REALbasic’s cross-compilation feature to develop programs <strong>for</strong><br />

Windows and Mac OS X, you have to pay <strong>for</strong> the professional edition. Likewise,<br />

the Intel C++ and FORTRAN compilers are free only <strong>for</strong> non-commercial use. If<br />

you plan to develop commercial applications, you have to pay <strong>for</strong> the compiler.<br />

Table 4-3<br />

Free Linux Compilers<br />

Compiler Name Programming Language Where to Find It<br />

GCC C, C++, Objective-C, Java, http://gcc.gnu.org<br />

FORTRAN, and Ada<br />

GNU Prolog Prolog http://gprolog.<br />

inria.fr<br />

GNU Pascal Pascal www.gnu-pascal.de<br />

Free Pascal Pascal www.freepascal.org<br />

REALbasic BASIC www.realbasic.com<br />

Intel C++ C++ www.intel.com<br />

Intel FORTRAN FORTRAN www.intel.com<br />

Finding an Interpreter<br />

Interpreters are commonly used <strong>for</strong> scripting languages, such as Perl or Python,<br />

but rarely used <strong>for</strong> systems <strong>programming</strong> languages, such as C++. That’s<br />

because if you write a program and use an interpreter, you must distribute a<br />

copy of your source code with the interpreter. Giving away your source code<br />

essentially gives away your program, so most commercial programs use a<br />

compiler instead.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!