home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!pitt!willett!ForthNet
- From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie)
- Newsgroups: comp.lang.forth
- Subject: ANS TC Magnet for ROMability
- Message-ID: <4056.UUL1.3#5129@willett.pgh.pa.us>
- Date: 14 Sep 92 11:46:05 GMT
- Organization: EIEI-U
- Lines: 44
-
- Category 10, Topic 22
- Message 87 Sun Sep 13, 1992
- B.RODRIGUEZ2 [Brad] at 08:36 EDT
-
- > The first step in standardising cross compilers should be to write
- > a clear explanation of how a cross compiler works and publish code
- > that does it in an efficient manner. We will know the code is good
- > when it gets copied into various new Forth systems.
-
- Sorry, I have to disagree with this. This seems to be saying that we should
- have one cross-compiler, period....which would by default be standard! I'd
- rather see variety in cross-compiler approaches.
-
- Re. the published explanation & code, I'm told my article on the subject is
- now appearing in Forth Dimensions. As to whether it is clear or efficient, I
- can't say.
-
- This article describes a "traditional" (no flames, please!) Forth
- metacompiler, which "borrows" the dictionary search & some other mechanisms
- from the host Forth. This may be a common way to do metacompilers, but it's
- certainly not the only way!
-
- I haven't used the LMI cross-compiler, but I know it works differently (a two
- pass compiler), and I've heard great things about it. I also haven't used
- TCOM yet. I _have_ used the Pygmy re- compiler and I find it quite elegant,
- and much simpler than my cross- compiler. Just say *YES* to continued
- compiler experimentation!
-
- BTW, I think Stephen Pelc has devised a useful nomenclature for metacompilers:
- a "cross-compiler" can produce code for a different CPU. A "recompiler" --
- e.g. Pygmy -- can simply regenerate the kernel for the host CPU; it can't
- produce code for a new CPU.
- I think "metacompiler" is the general class. (Please correct me if I'm
- wrong, Stephen.)
-
- Brad Rodriguez
- B.RODRIGUEZ2 on GEnie | bradford@maccs.dcss.mcmaster.ca
- So many projects....so little time.
-
- -----
- This message came from GEnie via willett. You *cannot* reply to the author
- using e-mail. Please post a follow-up article, or use any instructions
- the author may have included (USMail addresses, telephone #, etc.).
- Report problems to: dwp@willett.pgh.pa.us
-