"da Silva, Joe" wrote:
Hmmm ... Do you perhaps want a P4 P-Code to 386 translation scheme instead? I'm assuming here that P4000 is some derivative of the P4. Since you already have a front-end, it may be easier to translate it's output to 386 as a separate program, instead of modifying the existing "front-end". Perhaps someone here may know of existing code to perform such a translation or at least know where to find decent documentation of the P4 P-Code (BTW, if so, I may be interested too;-).
PLEASE do not toppost.
See "PASCAL, The Language and its Implementation", edited by D.W.Barron. Wiley 1981, ISBN 0 471 27835 1. The chapter involved is "Pascal-P Implementation Notes", by Nori, Ammann, Jensen, Nageli and Jacobi.
For a compiler that generates somewhat similar code, and runs under MsDos/Windoze, see the download section of my site, URL below. It is a descendant of P4, and is almost fully ISO7185 compliant. No procedural parameters, no gotos out of procedures.