www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/14/20:17:02

From: dontmailme AT iname DOT com (Steamer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: THE -O2 PROBLEM
Date: Fri, 14 Apr 2000 19:41:50 GMT
Organization: always disorganized
Lines: 17
Message-ID: <38f77447.42075750@news.freeserve.net>
References: <38F20E7A DOT 3330E9A4 AT mtu-net DOT ru> <38F6C64E DOT C7753C6C AT mtu-net DOT ru> <8d7l3g$j3i$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
NNTP-Posting-Host: modem-16.montana.dialup.pol.co.uk
X-Trace: news6.svr.pol.co.uk 955741311 20527 62.137.77.16 (14 Apr 2000 19:41:51 GMT)
NNTP-Posting-Date: 14 Apr 2000 19:41:51 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hans-Bernhard Broeker wrote:

>Exactly. The problem is that with the AT&T assembly syntax used by gas
>and gcc, it may well be impossible to use the "g" constraint for any
>input/output operand.

I don't understand this comment.
E.g., what's wrong with something like:

    __asm__ (
        "roll $16, %0"
        : "=g" (x)
        : "0" (x)
        : "cc"
    );

S.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019