Re: asm grep
- From: Robert Redelmeier <redelm@xxxxxxxxxxxxxxx>
- Date: Sat, 29 Dec 2007 16:25:45 GMT
Frank Kotler <fbkotler@xxxxxxxxxxx> wrote in part:
I haven't fooled at all with that. What I've fooled with is
even more "obsessively small". We can address variables as
"[ebp +/- ???]" smaller than as static variables. (if ??? is
in signed byte range).
Yes, this is what x86 has been optimized for in spite of
its small register set. Access args & locals fast.
I modified what I had to utilize this... saved a bit of
size, and seems to have gained some speed (???).
The speed might be from instruction alignment wrt cacheline
breaks.
Printing filename (really need to do that) and/or offset, or
just count, shouldn't be a problem... Printing non-matching
lines is going to require major modification
Why? just default to printing the line & skip if match.
Not much different to default to noprint and print if match.
- does anyone > actually use that?
Yes. I use -v when I need to filter out false positives:
$ grep sshd /var/log/messages* | grep -v Accept ; gives failed sshd
I'm not familiar with "tr". You want to... strip the high bit
and then compare? Or strip the high bit from what we print?
strip, then compare. Strip before printing would also be nice,
but that probably takes tr..
I've had problems with binary files trashin'
my console... that might be a good one...
`reset` is your friend. Learn to type blind.
-- Robert
.
- Follow-Ups:
- Re: asm grep
- From: Frank Kotler
- Re: asm grep
- References:
- asm grep
- From: Frank Kotler
- Re: asm grep
- From: Robert Redelmeier
- Re: asm grep
- From: Frank Kotler
- Re: asm grep
- From: Robert Redelmeier
- Re: asm grep
- From: Charles Crayne
- Re: asm grep
- From: Frank Kotler
- Re: asm grep
- From: Robert Redelmeier
- Re: asm grep
- From: Charles Crayne
- Re: asm grep
- From: Robert Redelmeier
- Re: asm grep
- From: Frank Kotler
- asm grep
- Prev by Date: Re: asm grep
- Next by Date: Re: asm grep
- Previous by thread: Re: asm grep
- Next by thread: Re: asm grep
- Index(es):
Relevant Pages
|