On 10/01/17 23:30, Ralf Quint wrote:
On 1/10/2017 1:31 PM, gabor wrote:
http://turbopascal.org/
I think it's not borland's turbo pascal

No, it's not, it's the site of a Russian guy who says he reverse
engineered Turbo Pascal 7 and sells the source code for that (called
TPC16, there's also a 32bit version compiled with Delphi).

OK, but it does explicitly say that (early) TP was written in assembler. I'd also add that earlier versions, certainly <= v3, didn't allow general-purpose external libraries so it's unlikely that the library later shipped with (Pascal) source was relevant in those days.

So ultimately, all compilers depend heavily on assembler: either in a prototype which was later re-written in itself, or in an earlier compiler (e.g. C initially being written in B which was written in A which was written in assembler, or some similar chain).

Some system architectures provided more help than others for this job: Wirth recoded his earlier Euler and wrote much of ALGOL-W while he was at Stanford where they had a B5500, which had very high-level machine instructions. But something like the early TP compiler and editor, written in Z80 assembler for systems which didn't have a character-mapped screen or a standardised keyboard, took real skill.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-other maillist  -  fpc-other@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-other

Reply via email to