delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/19/13:30:04

From: Waldemar Schultz <schultz AT ma DOT tum DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Error: Parse error before ':'
Date: Thu, 19 Jul 2001 19:15:28 +0200
Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany)
Lines: 33
Message-ID: <3B5715B0.FFD1E4EF@ma.tum.de>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010719192144 DOT 3894B-100000 AT is> <20010719125925 DOT 27408 DOT 00000195 AT ng-ma1 DOT aol DOT com>
NNTP-Posting-Host: pcritter14.mathematik.tu-muenchen.de
Mime-Version: 1.0
X-Trace: wsc10.lrz-muenchen.de 995562923 6384 131.159.68.151 (19 Jul 2001 17:15:23 GMT)
X-Complaints-To: news AT lrz-muenchen DOT de
NNTP-Posting-Date: 19 Jul 2001 17:15:23 GMT
X-Mailer: Mozilla 4.75 [de] (Win98; U)
X-Accept-Language: de,en-US
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Sterten schrieb:
> you need  8 underscores and 1 blank  in
> __asm__ __volatile__
> 
> I made the same error and just found this out.
> There is another problem with fstd %2.
> 
> this one compiles for me:
> 
> main() {
> 
> double x;
> double y;
> double retorn;
> 
> __asm__ __volatile__ ("
>      fld %0
>      fld %1
>      fpatan
> //     fstd %2
>      fwait"
>      :
>      :  "g" (x), "g" (y),  "g" (retorn)
>      );
> 
> }
> 
what is that snippet supposed to do?

-- 
 Gruss Waldemar Schultz.         schultz AT ma DOT tum DOT de
 Technische Universität München, Zentrum Mathematik M1, D 80290 München
 Tel: +49 (0)89 2892 8226        FAX: +49 (0)89 2892 8228

- Raw text -


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