Jan Engelhardt
On Tuesday 2013-10-22 17:14, Joerg Schilling wrote:
Is there nothing like isainfo in Linux?
isainfo -v 64-bit amd64 applications xsave sse4.1 ssse3 cx16 sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu 32-bit i386 applications xsave sse4.1 ssse3 ahf cx16 sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu
We have /proc/cpuinfo. But how does that relate to the compilation of programs?
Well, when you comppile, you could use: -xarch=generic to go back to a minimum set -xarch=native to use everything the current CPU supports - something special handrafted. ... When executing programs, you usually make a hard link to /usr/lib/isaexec and this program is a one MMU page sized thing that calls sysinfo(SI_ISALIST, and looks for machine specific binaries.... isalist amd64 pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86 The program to call is searched in a subdirectory of the hardlink using the isalist output as directory names. libc is mounted to the best fit libc compile variant for performance reasons. BTW: this appeared in 1997, when 64 bit support was added to Solaris. Jörg -- EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin js@cs.tu-berlin.de (uni) joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org