Fix the object file grepping, take two
Zack Weinberg
zackw@Stanford.EDU
Thu Mar 15 23:26:00 GMT 2001
On Fri, Mar 16, 2001 at 03:54:02AM -0300, Alexandre Oliva wrote:
> On Mar 16, 2001, "Zack Weinberg" <zackw@stanford.edu> wrote:
>
> > + od -c conftest.o | cut -c8- |
> > + sed ['s/\*/./g; s/ \\n/*/g; s/ [0-9][0-9][0-9]/./g; s/ \\[^ ]/./g'] |
>
> IIRC, it's generally recommended to use sed instead of cut. Besides,
> since you're already running sed, it would be a win to fold it into
> the single sed command:
>
> 's/^[0-7]*[ ]*//'
> ^^^^ this is a TAB
Good point; I'll incorporate this.
I hadn't realized the numbers at the left were octal, but sure
enough...
zw
More information about the Gcc-patches
mailing list