[retroforth] Re: ztype in assembler

  • From: "Ron Aaron" <ron@xxxxxxxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Thu, 27 Jan 2005 12:14:52 -0800 (PST)

On Thu, January 27, 2005 5:35, Helmar Wodtke said:
> retroforth@xxxxxxxxxxxxx schrieb am 27.01.05 02:55:00:


> 10% less time on my processor needs (but 23 bytes):

Excellent - same result for me.

> So I think this is similar for other tasks. For speed reasons it seems to be
> best to completely avoid block/string instructions. I'm currently not sure if
> it is a good idea to replace the LODSD for "drop" in the compiler: the
> conditions ("if"-stuff) are coded with short jumps...

I did change drop to
        mov eax, [esi]
        add esi, 4

it gained me another 5-10%.

The conditional code needs to be smart and compile either a near or a far
jump...  this complicates it but will make the code work always.



-- 
My GPG public key is at http://ronware.org/
fingerprint: 8130 734C 69A3 6542 0853  CB42 3ECF 9259 AD29 415D






Other related posts: