At http://turbopascal.org/ you have the complete source code of Turbo
Pascal 7 compatible command line compiler.
This is a Turbo Pascal compiler written in Turbo Pascal. If you are
interested in compiler design you will like it.
However, this compiler has one drawback: it relies on the
segment:offset memory model.
Anyway, this is how Turbo Pascal compiler is constructed.
I can't find any download. Seems the site is outdated and still requires you
to purchase it. Or where is the download?
Yes, it is $50 for the full source... more for the 32-bit version,
didn't look that one up.