Groups | Search | Server Info | Login | Register
Groups > comp.compilers > #226
| From | torbenm@diku.dk (Torben Ægidius Mogensen) |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: Language Design |
| Date | 2011-08-08 16:11 +0200 |
| Organization | SunSITE.dk - Supporting Open source |
| Message-ID | <11-08-009@comp.compilers> (permalink) |
| References | <11-07-027@comp.compilers> <11-07-038@comp.compilers> |
Gene <gene.ressler@gmail.com> writes: > The old Turbo Pascal 2.0 dialect was pretty remarkable. There was a > version for Z80 (CP/M) and 8086 (MSDOS). I think the whole compiler > was only 50K or so. [...] > Pascal is also straightforward to compile, especially if you don't > allow nested functions/procedures (although Turbo did). Turbo Pascal used shallow binding, which makes nested procedures relatively simple to implement, though it made reference parameters behave in a non-standard way. With shallow binding, each variable name has its own global memory address. When you during execution pass a variable declaration, you stack the current value of the variable and set the new value according to the declaration. When you exit the scope of the declaration, you restore the old value from the stack. IIRC, later versions of Turbo Pascal changed this to be more standard compliant (i.e., by using deep binding). Torben
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar
Language Design Billy Mays <81282ed9a88799d21e77957df2d84bd6514d9af6@myhashismyemail.com> - 2011-07-18 16:16 -0400
Re: Language Design Roberto Waltman <usenet@rwaltman.com> - 2011-07-18 18:10 -0400
Re: Language Design Srinivas Nayak <sinu.nayak2001@gmail.com> - 2011-07-18 22:54 -0700
Re: Language Design anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2011-07-19 13:12 +0000
Re: Language Design Andreas Zwinkau <zwinkau@kit.edu> - 2011-07-20 13:26 +0200
Re: Language Design mac <acolvin@efunct.com> - 2011-07-23 01:11 +0000
Re: Language Design Christophe de Dinechin <christophe.de.dinechin@gmail.com> - 2011-07-23 08:17 -0700
Re: Language Design Oleg Sesov <osesov@gmail.com> - 2011-07-23 14:58 -0700
Re: Language Design Gene <gene.ressler@gmail.com> - 2011-07-26 10:28 -0700
Re: Language Design Roberto Waltman <usenet@rwaltman.com> - 2011-07-28 13:22 -0400
Re: Language Design torbenm@diku.dk (Torben Ægidius Mogensen) - 2011-08-08 16:11 +0200
Re: Language Design tm <thomas.mertes@gmx.at> - 2011-07-27 08:11 -0700
Re: Language Design "s_dubrovich@yahoo.com" <s_dubrovich@yahoo.com> - 2011-08-04 18:43 -0700
Re: Language Design for a tiny processor "BartC" <bc@freeuk.com> - 2011-08-08 22:54 +0100
csiph-web