Re: 2 Pass Binder
- Posted by noah smith <option1 at OPTIONINTERACTIVE.COM> Aug 17, 1999
- 395 views
Maybe this is totally off-track, but what if: >pseudo-code follows:< ...call to r_id[1..200] = routine_id() 200 times for i = 1 to 200 do call_function/procedure(i) end for I know this is sloppy/not particularly useful, but such code would not make specific reference to any particular routine_id() value. --noah Bernie Ryan wrote: > Rob: > Why not on the FIRST PASS of bind, scan the source and build a symbol > table that contains > 1: any time a constant or variable is used > 2: any time a function is used > 3: any time a procedure is used > The final result is symbol table containing a list of each item used. > The next pass you do the real bind and anything that is not in the > the symbol table is thrown away. > Bernie