Related articles |
---|
[3 earlier articles] |
Re: Linker ... still useful ? laverman@cs.rug.nl (1994-09-23) |
Re: Linker ... still useful ? z005465b@bcfreenet.seflin.lib.fl.us (Joel Runes) (1994-09-26) |
Re: Linker ... still useful ? baynes@mulsoc2.serigate.philips.nl (1994-09-26) |
Re: Linker ... still useful ? ram+@cs.cmu.edu (Rob MacLachlan) (1994-09-27) |
Re: Linker ... still useful ? steve@cegelecproj.co.uk (1994-09-28) |
Re: Linker ... still useful ? jan@neuroinformatik.ruhr-uni-bochum.de (1994-09-28) |
Linker ... still useful ? Roger@natron.demon.co.uk (1994-09-28) |
Re: Linker ... still useful ? gnb@bby.com.au (1994-09-29) |
Re: Linker ... still useful ? andrew@cee.hw.ac.uk (1994-09-30) |
Re: Linker ... still useful ? marks@orb.mincom.oz.au (1994-10-05) |
Re: Linker ... still useful ? ok@cs.rmit.oz.au (1994-10-06) |
Re: Linker ... still useful ? monnier@di.epfl.ch (1994-10-07) |
Re: Linker ... still useful ? baynes@ukpsshp1.serigate.philips.nl (1994-10-10) |
[1 later articles] |
Newsgroups: | comp.compilers |
From: | Roger@natron.demon.co.uk (Roger Barnett) |
Keywords: | linker |
Organization: | Natron Software Maintenance Ltd |
References: | 94-09-162 |
Date: | Wed, 28 Sep 1994 14:11:58 GMT |
ram+@cs.cmu.edu "Rob MacLachlan" writes:
> However, I have to admit I'm not sure what could come after current linkers.
> Support for multiple namespaces and initialization is straightforward, but
> interface checking is language dependent, and incremental linking and heap
> preallocation are dependent on the particular implementation as well as on
> the language.
>
> [A surprisingly effective way to do interface checking is to hang a byte
> string on each procedure symbol that somehow encodes the arguments passed
> (for refs) or expected (for defs) and for the linker to compare the strings
> and complain if they're not the same. ...
The RTL/2 language compilers have included a "linkage verifier" to perform
interface checking since 1972 (i.e. from the first release). The compilers
generate a "cross-reference" text file detailing defs and refs for global
procedures and data items which can then be passed to the linkage verifier
for checking before running whatever linker is being used. Other information
can also be included if useful, such as compiler version or option settings
used. Using a separate file has the advantage that the programmer can add
equivalent information for any modules written in (say) assembler in order
to provide a complete set of definitions.
--
Roger Barnett
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.