home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!spool.mu.edu!agate!rsoft!mindlink!a684
- From: Nick_Janow@mindlink.bc.ca (Nick Janow)
- Newsgroups: comp.lang.forth
- Subject: Forth Speed
- Message-ID: <15129@mindlink.bc.ca>
- Date: 15 Sep 92 06:45:11 GMT
- Organization: MIND LINK! - British Columbia, Canada
- Distribution: world
- Lines: 22
-
- int452w@lindblat.cc.monash.edu.au (Michael R. Geddes) writes:
-
- >+ If Forth had the support C has, it would also have nice systems with Forth
- >+ CPUs, and I think for equal investment in hardware and programming time, the
- >+ application in Forth would run a lot faster.
- >
- > I agree with this, but also, I have been told that better hardware can often
- > give you a reasonable increase in speed, but better algorithms give you an
- > order of magnitude increase in speed. Forth is 'slow' on most systems
- > because of the forth 'engine' that goes between machine code and forth code.
-
- Yes, but the critical phrase in your comment is "on most systems". A CPU
- optimized for C is likely to be somewhat less than optimal for Forth. A CPU
- optimized for Forth should run at least as fast as an equivalent CPU optimized
- for C, and probably faster, since Forth could run without needing fancy
- multi-stage caches, pipelining that has to handle conditionals, etc.
-
- Read Phil Koopman's "Stack Machines, The New Wave" for more details.
-
- --
-
- Nick_Janow@mindlink.bc.ca
-