Didn't you go to school? :) Weren't you ordered to make a simple compiler which accepted a Pascal subset and generated machine code?
I will tell you why do I want this translation scheme. I am involved in a project in which one of its steps is taking a compiler of a language called 'LC99' (it is very close to Pascal or Algol) which actually generates P-Code (from Pascal compiler P4000) and change it in order to make it generates i386 code. It's the first time I make a pure back-end (I've been always working on front-ends, which make me happier :). I am not interested in optimizations, because my project has only academical purposes (it's a visualizator of memory implemented over GDB).
Of course, implementation of GPC (front-end+Tree+RTL+back-end) crashes with I want to get (lex,parser,semant-->code). I knew it. But I thought any of you had some experience in something like this.
Many thanks to Marcel, Frank Heckenbach, Waldek Hebisch, Russell Whitaker, Maurice Lombardi and The African Chief (who has a Pascal-to- 386 compiler which may be helpful to me). Thanks indeed to Joe da Silva ;P.
Ciao!