Re: Postscript as a target language?

henry@zoo.toronto.edu (Henry Spencer)
Mon, 9 Aug 1993 04:18:11 GMT

          From comp.compilers

Related articles
Postscript as a target language? al@nmt.edu (1993-08-08)
Re: Postscript as a target language? henry@zoo.toronto.edu (1993-08-09)
Re: Postscript as a target language? zstern@adobe.com (1993-08-09)
Re: Postscript as a target language? cjmchale@dsg.cs.tcd.ie (1993-08-09)
Re: Postscript as a target language? donawa@bluebeard.cs.mcgill.ca (Chris DONAWA) (1993-08-09)
Re: Postscript as a target language? norman@flaubert.bellcore.com (1993-08-10)
| List of all articles for this month |
Newsgroups: comp.compilers
From: henry@zoo.toronto.edu (Henry Spencer)
Keywords: courses
Organization: U of Toronto Zoology
References: 93-08-040
Date: Mon, 9 Aug 1993 04:18:11 GMT

>...The only problem with Postscript is that as a stack
>language, it doesn't give you a place to do register allocation. -John]


But it's got variables, so you can pretend: "for the purposes of assignment
3, variables named `r0' through `r31' have access times 1/10 of that of any
other variable, and stack depth may not exceed 2 -- cope accordingly". You
could also define postfix macros to simulate whatever restricted forms you
wanted: "r0 x ld" instead of "ld r0, x". Neither of these is quite as
satisfactory as "the real thing", but they should suffice to expose the
students to realistic constraints.
--
Henry Spencer @ U of Toronto Zoology, henry@zoo.toronto.edu utzoo!henry
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.