Re: Backpatch?

gclind01@ulkyvx.louisville.edu
Sat, 1 Jul 1995 22:31:49 GMT

          From comp.compilers

Related articles
Backpatch? diaman@ee.upatras.gr (Nikos Diamantopoulos) (1995-06-25)
Re: Backpatch? boggs@osage.csc.ti.com (1995-06-30)
Re: Backpatch? gclind01@ulkyvx.louisville.edu (1995-07-01)
Re: Backpatch? IanC@gibside.demon.co.uk (Ian Cull) (1995-07-05)
Re: Backpatch? taweil@ucs.usc.edu (1995-07-13)
Re: Backpatch? jcea@ait.uvigo.es (1995-07-19)
Re: Backpatch? hebert@prism.uvsq.fr (1995-07-20)
Re: Backpatch? albaugh@agames.com (1995-07-20)
| List of all articles for this month |

Newsgroups: comp.compilers
From: gclind01@ulkyvx.louisville.edu
Keywords: code
Organization: University of Louisville
References: 95-06-096
Date: Sat, 1 Jul 1995 22:31:49 GMT
Received-Date: Sat, 1 Jul 1995 18:35:17 -0400

Nikos Diamantopoulos <diaman@ee.upatras.gr> writes:
> I need a backpatch mechanism such that i can use a variable before its
> definition. There are languages such as ALGOL, PL/1 that make use of
> such a mechanism.
> If anybody knows something about, he would greatly help me.
>
> Thanks


Hi,
Why not use a simple linked list? That's what I do. Every
time you use an undefined variable link the code address and the variable
name into the lst. At the end of the compile traverse the list doing
symbol lookups and complain if anything is undefined.


David
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.