X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Wed, 24 Oct 2007 23:06:39 -0400 Message-Id: <200710250306.l9P36dqi002391@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (do_not_have@nohavenot.cmm) Subject: Re: Using inline asm References: <471FEAC8 DOT 5179 DOT 2FAB88DB AT gerritvn DOT gpvno DOT co DOT za> <200710250120 DOT l9P1KEb2032374 AT envy DOT delorie DOT com> Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > > > asm ("cpuid" : "=a" (iRet)); > > Huh? I'm sure I missed something... That takes care of eax for cpuid, but > that ignores ebx, ecx, and edx. cpuid trashes those four registers whether > he returns them or not, correct? How does GCC correct the other three? asm ("cpuid" : "=a" (iRet) : : "ebx", "ecx", "edx"); Or something like that.