glibc optimizations and x86 variants
Joseph S. Myers
jsm28@cam.ac.uk
Thu Apr 1 00:00:00 GMT 1999
Some of the optimized assembler sources in glibc (2.0.110) for x86
variants seem to use non-386 instructions. Does glibc substitute 386
versions at runtime if needed? (The INSTALL file says that a library
compiled for a Pentium will still work on a 386.)
Some of the inline assembler in the headers may have the same problem.
egcs defines the relevant preprocessor variables based on the -mcpu value
rather than the -march value, so this could break the expectation that
unless you use -march the binary will work on any x86. Should egcs be
defining separate macros for the -mcpu and -march values (and glibc using
them in the headers to determine what assembler versions to use)?
--
Joseph S. Myers
jsm28@cam.ac.uk
More information about the Libc-alpha
mailing list