Article View: gnu.gcc.help
Article #53665Using asm templates on 386 wiht %-register names??
From: John_D._Sybalsky.MV
Date: Fri, 27 Sep 1991 04:49
Date: Fri, 27 Sep 1991 04:49
21 lines
986 bytes
986 bytes
I've tried everything I can think of on this one, top no avail.
gcc 1.40, on a 386 (ISC SVR3 2.2.1), stock as.
I need to do something like
asm(" movl %0, %esi" : : "g" (page));
But the danged % scanner (for %0) barfs on %esi, the legal register name.
I tried
{
volatile register * short foo asm("si");
. . .
}
But the register load gets optimized away under -O.
Help?
--John
Technical Details
Message-ID:
<91Sep26.214944pdt.11704@alpha.xerox.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!envos.xerox.COM!John_D._Sybalsky.MVShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,21977d8721121476,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1991-09-27 17:01:57 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!envos.xerox.COM!John_D._Sybalsky.MV From: John_D._Sybalsky.MV@envos.xerox.COM Newsgroups: gnu.gcc.help Subject: Using asm templates on 386 wiht %-register names?? Message-ID: <91Sep26.214944pdt.11704@alpha.xerox.com> Date: 27 Sep 91 04:49:24 GMT Sender: daemon@cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21