Re:Things That Turbo Pascal is Smaller Than
by groovy2shoes on Sunday October 30, 2011 @08:10PM
(#3175796)
Not necessarily. Some grammars can be parsed with simpler code than others, but optimizations can make a compiler larger. Also of note is that Turbo Pascal was written by hand in assembly language, and the executable wasn't likely to have been linked with any libraries.
[ Parent
| on HN ]
Re:Things That Turbo Pascal is Smaller Than
by bhangi on Sunday October 30, 2011 @09:17PM
(#3175970)
Indeed TP did not have any linking step. I still recall trying to fruitlessly find "Link" on the menu for quite some time until it hit me -- oh, no linking needed. But TP did include a run-time with each of the generated executable. This run-time was part of the compiler and it was approximately 10K (from memory, so I could be wrong). That makes the compiler about 22Kbytes worth of code, which is even more impressive.
Re:Things That Turbo Pascal is Smaller Than
by groovy2shoes on Sunday October 30, 2011 @10:21PM
(#3176106)
I wasn't aware that the runtime was included in the executable. Oh, the things we did in the DOS days!
Re:Things That Turbo Pascal is Smaller Than
by MatthewPhillips on Sunday October 30, 2011 @08:38PM
(#3175876)
Interesting, I didn't know this but Turbo Pascal was written by Anders Hejlsberg (of Delphi and C# fame).