In addition to the Turbo Pascal compiler presented on this website you can dowload old versions of Borland Turbo Pascal and some manuals. In 2008 Borland sold the CodeGear division to Embarcadero Technologies which now contunues to develop Turbo Pascal's successor Delphi. Embarcadero released some antique software as freeware which is now available for download.

Turbo Pascal 3 was advertised as "The fastest Pascal development environment on the planet. Period." This version of Turbo Pascal released in 1986 supported overlays which allowed to build larger applications, Intel 8087 math co-processor and BCD mathematics. The PC version also included libraries for graphics, colors and sound.

A comment from one user: "Most Pascal compilers briefly fit on a disk, but Turbo Pascal packs an editor, linker and run-time library into just 39 Kbytes of random-access memory."

Turbo Pascal 5.5 introduced object-oriented programming. It was released as the base product Turbo Pascal and as Turbo Pascal Professional which included also Turbo Assembler and Turbo Debugger.

Unfortunately no other official Turbo Pascal versions are released for free download.

TPC16 - Turbo Pascal 7 compatible compiler

TPC16 is the Turbo Pascal 7 compatible command line compiler that is presented on this website. It can compile any source code compatible with Turbo Pascal 7 syntax. It will generate the same executable file and unit files as the original Borland compiler. However, there are few minor differences:

TPC16.exe file is bigger than the original TPC.exe,

TPC16 does not generate map file,

TPC16 does not include debug info in the EXE file it generates,

few other differences of minor importance.

The TPC16 executable file is bigger because the compiler was written in Turbo Pascal – the original compiler was written in assembly language. Because of this TPC16 is not able to compile large projects - Turbo Pascal is DOS application where memory is limited. However, the goal of TPC16 was not to create a compact compiler. The goal was to create a working compatible compiler written in Turbo Pascal for the purpose of understanding algorithms and data structures that were used. TPC16 executable is available on TPC16 page for free download.

While most important functions of the compiler are described here in details, I decided not to offer the compete source code of the compiler for free. If you are interested in Turbo Pascal compiler internals then you will get all the answers here. You can use published algorithms and data structures without any limitations.

However, if you would like to use the compiler for your own project then you can get the source code in exchange for small compensation for the effort I put into the compiler. If you are interested in the compiler you can purchase the complete source code of the TPC16 (DOS application, compiles with Turbo Pascal) and TPC32 (WIN32 application, compiles with Delphi 7). If you take a look at prices of compiler construction books you will soon figure out that the price I am asking for a working compiler is lower than the price of top books on compiler desing and construction. Remember, a working compiler is the best book on compiler construction.