From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Moxham To: gcc-help@gcc.gnu.org Subject: -fPIC Date: Sun, 19 Aug 2001 20:30:00 -0000 Message-id: <200108200330.EAA03633@malus.maths.soton.ac.uk> X-SW-Source: 2001-08/msg00154.html Using gcc-2.95.3 under linux x86 writing a C asm wrapper for the "cpuid" instruction asm volatile("cpuid" : "+a" (a) : "b" (b) , "c" (c) , "d" (d) : "cc"); works but if compiled for shared libary ie with -fPIC then you get an asm error saying that " bx is allready used" even changing specific registers to "g" and putting extra "movl" asm instructions doesnt help Not yet tried this under gcc-3.0 I heard that shared libs are slight slower than static libs ? is this because an extra register is "used" ? Jason Moxham j.l.moxham@maths.soton.ac.uk