Sujet : Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!]
De : melahi_ahmed (at) *nospam* yahoo.fr (Ahmed)
Groupes : comp.lang.forthDate : 14. Sep 2024, 20:19:25
Autres entêtes
Organisation : novaBBS
Message-ID : <87f9a09cd377f544c27a8cd24bef3a45@www.novabbs.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
User-Agent : Rocksolid Light
On Sat, 14 Sep 2024 18:54:46 +0000, mhx wrote:
That can't be correct.
You are right.
I find with gforth:
: go 0 do -0.1e neg_big fdrop loop ;
without locals:
utime 100000000 go utime d>f d>f f- 1e-8 f* f. 0.06762074 us ok for 1e8
times: (67.62 ns)
and with locals:
utime 100000000 go utime d>f d>f f- 1e-8 f* f. 0.09961387 us ok for
1e8 times: (99.61 ns)
I missused the timing in the previous post.
Thanks for the correction.
>
FORTH> tnb
\ no locals: 4.9ns/call.
\ locals: 21.3ns/call. ok
>
-marcel
Ahmed