Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: comp.lang.c,comp.lang.forth,comp.lang.misc Subject: Re: The winner! Message-ID: <8326@utzoo.UUCP> Date: Mon, 20-Jul-87 13:05:08 EDT Article-I.D.: utzoo.8326 Posted: Mon Jul 20 13:05:08 1987 Date-Received: Mon, 20-Jul-87 13:05:08 EDT References: <398@sugar.UUCP> Organization: U of Toronto Zoology Lines: 19 > Using direct threaded code, you can actually implement both NEXT and DOCOL > in one instruction apiece. > > NEXT: > jmp (IP)+ > > DOCOL: > jsr (IP),> > I challenge anyone to come up with a faster interpreter anywhere (how can > you beat one instruction?)... Given that that one instruction takes 1.68 us in the first case and 3.7 in the second, this being on a relatively fast 11 (the 44), I would say it is pretty easy to come up with a faster interpreter on something like a MIPS machine... (The point being that you do *pay* for having instructions complex enough to do such things in one instruction.) -- Support sustained spaceflight: fight | Henry Spencer @ U of Toronto Zoology the soi-disant "Planetary Society"! | {allegra,ihnp4,decvax,utai}!utzoo!henry