by WalterBright · 3y ago · 0 comments
http://www.trs-80.org/tiny-pascal/
I figured out the basics of how a compiler works by going through it line by line.
I didn't see a link to the source in the article, but this seems to be it: https://sourceforge.net/p/tiny-pascal/code/HEAD/tree/NorthSt...
Some dialects and optimising compilers, had multiple passes.
You are right about Pascal's original design. Though I'm not sure if that's still true about modern versions of the language?
Pressing "build" in Turbo Pascal on my 386sx it was already done before you could even perceive any delay. Instant.