On 11 Dec 2002 at 10:50, a2782@dis.ulpgc.es wrote:
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.
GPC can generate assembler output (IIRC, in AT&T syntax). Run the command: gpc -S foo.pas
You will get an assembler file called foo.s, which contains all the "movl", "push" or whatever, that you could care to see.
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/