1-pass Assembler Design

"Marv Luse" <marvl@fusionmm.com>
13 Aug 1998 22:14:26 -0400

          From comp.compilers

Related articles
1-pass Assembler Design marvl@fusionmm.com (Marv Luse) (1998-08-13)
Re: 1-pass Assembler Design leichter@smarts.com (Jerry Leichter) (1998-08-16)
Re: 1-pass Assembler Design gkasten@auco.com (Glenn Kasten) (1998-08-16)
Re: 1-pass Assembler Design nr@labrador.cs.virginia.edu (Norman Ramsey) (1998-08-16)
Re: 1-pass Assembler Design ian@cygnus.com (1998-08-16)
Re: 1-pass Assembler Design adrian@dcs.rhbnc.ac.uk (1998-08-17)
Re: 1-pass Assembler Design meissner@cygnus.com (Michael Meissner) (1998-08-17)
[3 later articles]
| List of all articles for this month |

From: "Marv Luse" <marvl@fusionmm.com>
Newsgroups: comp.compilers
Date: 13 Aug 1998 22:14:26 -0400
Organization: Dimensional Communications
Keywords: assembler, question, comment

I have been pondering the design of a 1-pass assembler and have been
considering schemes for dealing with forward references (i.e., jump to
label not yet found in source code). Does anyone have any suggestions
for a practical scheme for doing this? I have devised several
approaches, but have limited time for investigation, so if someone
could suggest an approach that would be great.

Marv Luse
[Either you have to buffer enough of your output to wait for the
definitions, potentially buffering an entire assembly, or else you
need an output language that permits backpatching. Or if you want to
be really gross, you can write your output file with holes, then
rewind it and backpatch it in place, adjusting checksums and the like
on the way. -John]

Post a followup to this message

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