Optimized string operations for i586...

H.J. Lu hjl@lucon.org
Thu Apr 8 16:45:00 GMT 1999


> 
> On Thu, 8 Apr 1999, H.J. Lu wrote:
> 
> > I have no problems with this. However, things may be different if
> > your gcc is configured with i386-pc-linux. If you want to optimize
> > glibc for i586, you should do
> > 
> > export CFLAGS="-mcpu=i586 -march=i586 -D__USE_STRING_INLINES -fstrict-aliasing -g -O3"
> > ../glibc/configure --prefix=/usr --enable-add-ons=yes i586-pc-linux
> > 
> > In that way, gcc will generate code for i586, no matter what target
> > gcc is optimized for by default, AND glibc will be configured for i586.
> 
> This still breaks, just try to enable NIS lookups and everything will
> start to fall apart.
> 

Just for the fun of it, I am running glibc 2.1.1 configured with
i586-pc-linux and compiled with

CFLAGS="-mcpu=i586 -march=i586 -D__USE_STRING_INLINES -fstrict-aliasing -g -O3"

using egcs 1.1.2 on a Quad P/II Xoen with NIS. It works fine.


-- 
H.J. Lu (hjl@gnu.org)



More information about the Libc-hacker mailing list