Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ima.UUCP Path: utzoo!decvax!ima!johnl From: johnl@ima.UUCP (Compilers mailing list) Newsgroups: mod.compilers Subject: Re: P-code translation Message-ID: <163@ima.UUCP> Date: Wed, 16-Jul-86 11:23:18 EDT Article-I.D.: ima.163 Posted: Wed Jul 16 11:23:18 1986 Date-Received: Wed, 16-Jul-86 17:43:35 EDT Reply-To: Comfy chair Organization: U of Rochester, CS Dept, Rochester, NY Lines: 16 Approved: In-Reply-To: <160@ima.UUCP> Uucp: ..!{allegra,decvax,seismo}!rochester!ken ARPA: ken@rochester.arpa Snail: CS Dept., U. of Roch., NY 14627. Voice: Ken! A better way is to implement a virtual stack in the CG. Keep track of where the stack element came from, delay generating code for stack instructions so that you can generate the most sophisticated memory to register/memory instructions possible. I'm no expert on this, but that is what I have seen done in several RPN CGs. Try looking at the original papers on P4 as well as the BCPL book by Martin Richards. Ken -- Send compilers mail to ima!compilers or, in a pinch to Levine@YALE.EDU Plausible paths are { ihnp4 | decvax | cbosgd | harvard | yale | bbncca}!ima Please send responses to the originator of the message -- I cannot forward mail accidentally sent back to compilers. Meta-mail to ima!compilers-request