A Turbo Pascal compiler written from scratch in Turbo Pascal itself
Turbo Pascal Compiler Written in Turbo Pascal

TPC16 is a command-line Turbo Pascal compiler built from scratch that matches Borland's TPC.EXE on both source and binary level, producing identical 16-bit x86 code and units. Written in Turbo Pascal 7, it can compile itself — though the DOS memory limit means you must build it with the protected-mode BPC.EXE. The source is sold as a practical guide to compiler construction, covering symbol tables, scanners, parsers, and code generation.
TPC16 is the cheapest e-book on compiler design and implementation taking into account that it reveals the complete, working compiler.
- pjmlp
Now that is a project that really feels like donating, especially in today's age.
If I recall correctly it already has a few years behind it, thus it was actually written by someone that can use the donation.
> This is not the "original" Borland source code of the Turbo Pascal since it was probably not written in Pascal.
Indeed, it was written in Assembly during the CP/M days, and slowly got to have more Turbo Pascal into it as the language evolved.
- dukoid
If you are interested in TP and retro stuff, you might be interested in Jörg's Pasta80 btw.... https://github.com/pleumann/pasta80
- gxd
If you haven't lived through this era, try one day to download DOSBOX and run Turbo Pascal. You will be impressed with how fast it compiles on an old machine... Often faster than most modern projects on our modern computers.
- yomismoaqui
As an IDE Turbo Pascal was awesome.
Blazing fast compiler (on that era's hardware), glorious TUI framework (Turbo Vision) and a nice help system. Anders Hejlsberg is a genius.
After using this and Delphi and then having to develop UIs on the web it was like losing an arm.
- plinkplonk
you have to pay to get the 32 bit compiler source code.
(nothing wrong with this, this information is way down the page, and it might help someone else wondering if this were open source)
"Most of the source code is published with comments on Turbo Pascal website. Here you will be able to get all the internals of the compiler. However, if you would like to use this compiler for your own project and you need the complete TPC16 package with all source files then please continue reading. You can get TPC16 Turbo Pascal compiler source code for some small compensation"
TPC 32 - 150 Euros for two downloads in the next 24 hours.