gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] A little do-nothing in recognizer.fs: get-stack


From: James Gere
Subject: Re: [gforth] A little do-nothing in recognizer.fs: get-stack
Date: Mon, 1 Feb 2016 02:38:03 -0500

     Now perplexed.  "see get-stack" gives:

:   get-stack
     noop   swap   @   noop   >r  cells   bounds   swap
     ?do     i   @   noop   <cell>
     -loop
     r>   ;

.  recognizer.fs source gives:

: get-stack ( rec-addr -- xt1 .. xtn n )
    dup swap @ dup >r cells bounds swap ?DO
I @
    cell -LOOP  r> ;

.  I realize "see" can't always keep up with "c,"  and recognize
that the cached tos needn't be dup'ed, but where does the last noop come
from?  (They all optimize out.)
     Is the "nonce" swap,  in the source, there to trigger this behavior, or just
an oversight?

     


reply via email to

[Prev in Thread] Current Thread [Next in Thread]