This is the mail archive of the libc-hacker@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

glibc optimizations and x86 variants


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]