Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!ucbvax!decwrl!labrea!rutgers!umn-d-ub!gandreas From: gandreas@umn-d-ub.D.UMN.EDU (Glenn Andreas) Newsgroups: comp.lang.forth Subject: Re: FORTH and memory Keywords: DO, LOOP, interpreter, aardvarks Message-ID: <438@umn-d-ub.D.UMN.EDU> Date: 2 Aug 88 17:36:19 GMT References: <8807211846.AA27919@jade.berkeley.edu> <9428@dartvax.Dartmouth.EDU> <2353@pt.cs.cmu.edu> <1530@crete.cs.glasgow.ac.uk> <132@kolvi.hut.fi> <17597@glacier.STANFORD.EDU> <6700@well.UUCP> Reply-To: gandreas@ub.d.umn.edu.UUCP (Glenn Andreas) Organization: University of Minnesota, Duluth Lines: 26 In article <6700@well.UUCP> jax@well.UUCP (Jack J. Woehr) writes: >In article <17597@glacier.STANFORD.EDU> jbn@glacier.UUCP (John B. Nagle) writes: >> I have used the New Micros Forth on the M68HC11. It is painfully >>slow. 10000 0 DO LOOP takes about one full second. Interpreters are >>slow, there's no getting around it. > Fancy meeting you here, John! Anyway, good buddy, what does the >interpreter have to do with the execution speed of 10000 0 DO LOOP unless >you are saying that serial communication with the 68HaCk takes a full >second? The interpreter is not invoked in a DO ... LOOP in Forth. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Jack "I wanted to buy 64 Novixen but one Super8 was cheaper" Woehr Usually it is however. Remember that FORTH has TWO interpreters, the inner and the outer. The outer interpreter reads the input and creates the words that are defined and threads them together. The inner interpreter actually executes these threads. Some FORTHs however, create the equivalent of a bunch of assembly instructions saying JSR a JSR b JSR c, etc... This all depends on what method of threading is done (direct, indirect, token, etc...) and will vary from FORTH to FORTH. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= = "When I was young, all I wanted was to be | - gandreas@ub.d.umn.edu - = = ruler of the universe. Now that isn't | Glenn Andreas = = enough" - Alex P. Keaton | = =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=