Re: 2 Pass Binder

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu