home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.compilers:1387 comp.lang.c:12391
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!cs.utexas.edu!rutgers!faatcrl!iecc!compilers-sender
- From: behrenss@Informatik.TU-Muenchen.DE (Soenke Behrens)
- Newsgroups: comp.compilers,comp.lang.c
- Subject: Re: Two-pass C compilers
- Keywords: C
- Message-ID: <92-08-086@comp.compilers>
- Date: 16 Aug 92 13:21:15 GMT
- References: <92-08-081@comp.compilers>
- Sender: compilers-sender@iecc.cambridge.ma.us
- Reply-To: behrenss@Informatik.TU-Muenchen.DE (Soenke Behrens)
- Organization: Technische Universitaet Muenchen, Germany
- Lines: 20
- Approved: compilers@iecc.cambridge.ma.us
-
- Hmmm ... beat me if I something silly, but: Is there any way around
- a two-pass compiler? (Or even more passes)
-
- First pass: Reading in the source, preprocessing it, building a symbol table.
- Second pass: Generate p-Code
- Third pass: Optimize p-Code (Note: Do not mix with 2nd pass or you are
- in deep trouble)
- Fourth pass: Generate native code in linkable object file
-
- Soenke
- --
- behrenss@informatik.tu-muenchen.de
- FIDO: 2:246/13 Soenke Behrens
- [I would call those compiler phases, and use "pass" to mean reading the source
- code. A classic two-pass assembler reads the source once to establish values
- for the symbols and again to generate object code and maybe a listing using
- the symbol values. -John]
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-