Mail Archives: djgpp/1998/03/25/04:01:42
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 -