htak@eskimo.com (Henry Takeuchi)
Mon, 12 Dec 1994 08:29:31 GMT

          From comp.compilers

Related articles
[2 earlier articles]
Re: executables johnm@cory.EECS.Berkeley.EDU (1994-12-04)
Re: executables fastyeald@cix.compulink.co.uk (1994-12-06)
Re: executables tleylan@aloha.com (1994-12-07)
Re: executables bob@cs.adelaide.edu.au (1994-12-08)
Re: executables htak@eskimo.com (1994-12-08)
Re: executables tleylan@aloha.com (1994-12-09)
executables htak@eskimo.com (1994-12-12)
Re: executables will@ccs.neu.edu (1994-12-12)
Re: executables rcheung@delos.stgt.sub.org (1994-12-17)
Re: executables tleylan@aloha.com (1994-12-17)
Re: executables robert@par.univie.ac.at (1994-12-14)
Re: Executables vadakke@cse.uta.edu (1994-12-14)
Re: executables larus@cs.wisc.edu (1994-12-17)
[3 later articles]
| List of all articles for this month |

Newsgroups: comp.compilers
From: htak@eskimo.com (Henry Takeuchi)
Keywords: linker, comment
Organization: Compilers Central
References: 94-12-019
Date: Mon, 12 Dec 1994 08:29:31 GMT

<tleylan@aloha.com> writes:
: Everybody keeps referring to this stuff as "old" and "simple" yet I can't
: find a "textbook" answer. It must be one of these subjects (and there
: are a few) where people who want to understand it are left on their own
: to experiment and figure out. Granted a book on the subject wouldn't
: find its way onto the best seller list but if Aho and Fischer and the
: others can all turn out compiler books I'd think a chapter or two on
: relocatable object format would (if nothing else) distinguish them a bit
: more.

    Check a library for this book:
"Compiler Construction for Digital Computers" by David Gries.
The book is outdated (1971) because it does not describe LR parsing.
    Chapter 17 contains a description of one relocatable format (from an
IBM mainframe). It explains what kind of information is needed and
how to put it in relocatable form. You need to figure out how to do
the equivalent tasks in the OBJ format. He also mentions a trick for
dealing with forward references in one-pass compilers.
    One thing that might not be obvious: you need to do the work of an
assembler. You need to count bytes, record target addresses, and use
that information for generating memory references and jump addresses.

Hope this helps.

Henry S. Takeuchi
[Gries book is an ancient classic in the field. It does indeed have an
adequate discussion of IBM 360 object format circa 1968. -John]

Post a followup to this message

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