Re: asm grep



On Thu, 27 Dec 2007 04:49:05 GMT
Robert Redelmeier <redelm@xxxxxxxxxxxxxxx> wrote:

That is pretty easy -- just do a fixed size read (I'd suggest 512
or 4096 bytes). Then I'd just run a REP / SCASB or CMP AL,[ESI+ECX]
/ JNZ on the anchor. Watch for a match in the block-breaks.

Or, better yet, mmap the file and get rid of the block-break code, as
well as the file reads.

-- Chuck

.