www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/25/04:01:42

Date: Tue, 24 Mar 1998 21:54:42 -0800 (PST)
Message-Id: <199803250554.VAA20233@adit.ap.net>
Mime-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>,
Viktor Lundstrom <viktor DOT lundstrom AT mailbox DOT swipnet DOT se>,
jasonp AT Glue DOT umd DOT edu
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: is this an inline asm bug?
Cc: djgpp AT delorie DOT com

At 01:14  3/24/1998 +0300, Eli Zaretskii wrote:

>Well, `_farpokeXX' functions are implemented in inline assembly, and
>they rely on GCC to reload any registers they clobber.  See the header
><sys/farptr.h>.  You might compare the code there with your version,
>to see what exactly did you do differently.  Perhaps there *is* a bug
>in GCC, but it is only limited to certain registers and not to all of
>them.  Or perhaps you used a different constraint letter(s).

Looking back at the original post, I suspect that case is related to the
fact that (clobbered regs) + (regs requested with "r" constraint) > (regs
available to GCC). Not that that excuses it generating bad code there; IMHO
it should at least complain.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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