Ok, ok. It's true, maybe I have to be more precise.
The problem may be in the words 'Translation Scheme' :). In fact, I've translated it from the Spanish expression 'esquema de traducción'.
I ask for the correspondency between Pascal structures and i386 code. For example, when the parser reads a 'procedure' declaration, what i386 instructions are generated (movl, enter, push...). When the parser reads a assignment (a:=b), what code is generated and so on...
I know that GPC does something different, because it's 'only' a front- end (and uses Trees and RTL). But I wonder if someone of this mailing- list has this scheme.
Thanks!
Mensaje citado por: Eike Lange eike.lange@uni-essen.de:
Hi!
On Wed, Dec 11, 2002 at 09:00:46AM +0000, a2782@dis.ulpgc.es wrote:
to think that a compiler generates an object code (or intermediate code) from a source code in several phases... but it seems that this definition is wrong! Anyway, I need to convert a Pascal source in a i386 code. The Translation Scheme for this would be useful for me.
I do not know, what "Translation Scheme" means, but if you have some Pascal code like:
program Hello;
begin WriteLn ('Hello, World!') end.
in a file called "hello.pas" You just have to run a compiler, such as the GNU-Pascal Compiler with: gpc hello.pas -o hello to produce an executable.
Afterwards, just run `hello' on your shell.
If you want something else, please be more precise.
Eike