hamdyz@prism.cs.orst.edu (Zikif Hamdy) (11/14/90)
I don't know if this is the right newsgroup but I am desperate. I am looking for a good book on how to write an assembler. If you have sample codes, I appreciate if you can share the codes with me. I need a general idea how to write such a beast. I have the "dragon" book. Most compiler books discuss high level compilers. Thanks in advance. Zikif Hamdy hamdyz@prism.cs.orst.edu [An assembler is just a simple-minded compiler. The issues are largely the same. -John] -- Send compilers articles to compilers@iecc.cambridge.ma.us or {ima | spdcc | world}!esegue!compilers. Meta-mail to compilers-request.
mauney@eos.ncsu.edu (Dr. Jon Mauney) (11/16/90)
In article <21757@orstcs.CS.ORST.EDU>, hamdyz@prism.cs.orst.edu (Zikif Hamdy) writes: |>I am looking for a good book on how to write an assembler. Peter Calingaert's "Program Translation Fundamentals" Computer Science Press, 1988 has a chapter on assemblers. ( it is also one of the few works I know of that discusses the tabu subject of linking and loading) |>[An assembler is just a simple-minded compiler. The issues are largely the |>same. -John] Although this is true in part, an assembler has to deal with some source- language constructs that are, thankfully, omitted in higher-level languages. [I suppose that assemblers also have to deal head-on with issues like assignment of binary memory addresses that many compilers punt to the assembler. -John] -- Send compilers articles to compilers@iecc.cambridge.ma.us or {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
OS360051@WVNVAXA.WVNET.EDU (11/22/90)
In article <21757@orstcs.CS.ORST.EDU>, hamdyz@prism.cs.orst.edu (Zikif Hamdy) writes: > I am looking for a good book on how to write an assembler. ... _Program Translation Fundamentals_ by Peter Calingaert has a good section on assemblers; he discusses a two-pass assembler in some depth and one-pass assemblers more briefly. There is also a list of other books discussing assemblers. It was published by Computer Science Press, copyright 1988. The author says it is intended as a one-semester text in a first course on translators. I think is is a very good book; it does not have the detail of the dragon book, but presents its material clearly and simply, concentrating on the fundamentals and giving references where the reader can find more detail. I've found it very useful for self-study. T. Kurt Bond os360051@wvnvms.wvnet.edu -- Send compilers articles to compilers@iecc.cambridge.ma.us or {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.