Mail Archives: pgcc/1999/04/28/16:33:41
On Wed, Apr 28, 1999 at 07:40:46PM +0000, John Hayward-Warburton wrote:
> > On Wed, Apr 28, 1999 at 06:58:18PM +0200, Olivier Tubach wrote:
> > > So.... do I really got pentium optimized code ? How do I recognize
> > > pentium-specific code (with file?)
>
> My cheap and easy way:
>
> I do a "less" on the resultant binary. At the end, one sees lots of
> things like:
>
> GCC: (GNU) 2.6.4 snapshot 950518^@^@GCC: (GNU) 2.6.3^@^@
>
> for a really old binary (I think the first number you see is the
> compiler that compiled the binary, and the rest are the libraries?)
>
> GCC: (GNU) 2.7.2.3^@^@GCC: (GNU) 2.7.2.3^@
>
> for something more recent,
>
> but
>
> GCC: (GNU) pgcc-2.91.66 19990314 (egcs-1.1.2 release)^@^@GCC: (GNU)
> pgcc-2.91.66 19990314 (egcs-1.1.2 release)^@^@GCC: (GNU)
> pgcc-2.91.60 19981201 (egcs-1.1.1 release)^^@^@^@^
>
> for the latest stuff.
>
> JHW
>
This works for gcc (and gives output similar to `gcc -v`).
I think the question was how to recognize that an arbitrary
binary has been compiled with pentium optimizations. I know
of no way to determine this.
Ronald
- Raw text -