home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!spool.mu.edu!agate!ames!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!s09a05!exuhag
- From: exuhag@exu.ericsson.se (James Hague)
- Newsgroups: comp.lang.forth
- Subject: Re: Recent FORTHs' guts (was: Documenting)
- Message-ID: <1993Jan26.141606.12503@exu.ericsson.se>
- Date: 26 Jan 93 14:16:06 GMT
- References: <1993Jan26.062019.13295@sol.ctr.columbia.edu>
- Sender: news@exu.ericsson.se
- Reply-To: exuhag@exu.ericsson.se
- Organization: Ericsson Network Systems, Richardson, TX
- Lines: 33
- Nntp-Posting-Host: s09a05.exu.ericsson.se
- X-Disclaimer: This article was posted by a user at Ericsson.
- Any opinions expressed are strictly those of the
- user and not necessarily those of Ericsson.
-
- Penio Penev writes:
- >
- >I feel a bit confused what You mean by 'true compiler'. I suppose You
- >mean something You pass a text stream to and it returns some kind of
- >assembly or object.
- >
- >What I ment is something completely different. I ment native coding,
- >inlining and local (I think the term is peephole) optimisation.
-
- I meant the same thing you did, an interactive Forth system that creates
- native code (within the Forth environment) which is more than just
- subroutine threading. My (possibly unfounded) objection is that this
- complicates the underlying Forth system to the point where you can no
- longer change things on a very low level; in effect, the compiler is
- sealed off from the user as with C or Pascal. My feeling is that the
- interactive system should be a simple and easy to understand as possible
- and a full-blown compiler can be brought in later. Or maybe just have
- a special function that can be called to optimize the most recently
- defined word into native code. This would give the user a choice (HS/Forth
- might do this, I think.)
-
- >: More and more I'm discovering one of the reasons for Forth's lack
- >: of popularity is that, while it doesn't have to be used solely for
- >: embedded systems, there isn't much support outside of that area.
- >
- >I guess this statment will be flamed by the FORTH vendors, who are
- >suppose to 'support [products] outside of that area'.
-
- I'm seriously hoping it will be.
-
- --
- James Hague
- exuhag@exu.ericsson.se
-