I'll fix these (and some other things mentioned in other posts in this thread), and repost again in the next day or so,

Thanks all,

Nick

Leopold Toetsch wrote:

Nick Glencross <[EMAIL PROTECTED]> wrote:


for fun I've written md5sum using IMCC, and have attached my first cut.



Yet another f'up. Some enhancements and nit picks.

- buffer should be a IntvalArray (or IntList still)
 (I've copied the splice over to intlist.c)

- extracting the chars out of the string can use this opcode:

    #$S0 = str[$I5]
    substr_r $S0, str, $I5, 1

 which reuses $S0

Both give a considerable performance improvement.

- getting argv is better written as:

 .sub _main
    .param pmc args

leo


Reply via email to