www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/15/02:56:37

Date: Wed, 15 Jan 2003 10:55:36 +0300
From: Bokarev Alexandr <bokarev AT elins DOT ru>
X-Mailer: The Bat! (v1.44)
Organization: NTC Elins
X-Priority: 3 (Normal)
Message-ID: <1814460936.20030115105536@elins.ru>
To: djgpp AT delorie DOT com
Subject: Problem with inline AT&T assembler
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

I have DJGPP ver.3.1 and try to use inline assembler.
I write something like:

int src;
__asm__ ( \
"some code in assembler"
:
: "S" (src)
: "%esi" );

and think that this code is right. But compiler says:
"Error: can't find register in class 'SIREG' while reloading 'asm'"
(or CREG, DIREG etc.).
What must I do to fix this error ?


- Raw text -


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