www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/14/05:15:06

From: "MarKol" <markol4 AT wp DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: What's wrong??
Date: Mon, 14 May 2001 11:03:54 +0200
Organization: Technical University of Gdansk
Lines: 35
Message-ID: <9do6sp$pri$1@sunrise.pg.gda.pl>
NNTP-Posting-Host: seazone.gda.pl
X-Trace: sunrise.pg.gda.pl 989830873 26482 195.117.175.253 (14 May 2001 09:01:13 GMT)
X-Complaints-To: abuse AT pg DOT gda DOT pl
NNTP-Posting-Date: 14 May 2001 09:01:13 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello.

I can't compile this successfully.
AFAIK everything is correct and I don't know what to do.

Please, help if you can.

int
main()
{
  unsigned int cr0;
  // store a copy of CR0
  __asm__ __volatile__ ("movl %%cr0, %%eax":"=a"(cr0)::"eax");
}




main.c: In function `main':
main.c:6: Invalid `asm' statement:
main.c:6: fixed or forbidden register 0 (ax) was spilled for class
AREG.

--
---

 |-|-|-|-|
  \     /    Marek Kolacz - MarKol
   |   |
   |   |        (markol4 AT wp DOT pl)
  (     )
 (       )
(_________)


- Raw text -


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