Compile/ASM Problem

Alexander Reelsen ar at rhwd.net
Thu Mar 16 22:03:25 CET 2000


Moin

Ich compile hier bzw versuche gerade DUMB zu compilen.
Hat was mit rendern und spielen zu tun...

http://samba.anu.edu.au/dumb/  - wen es interessiert.

Folgende Fehlermeldung haelt mich auf, da ich von asm so gut wie gar nix
verstehe.

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../intl  -I/usr/X11R6/include
-g -O2 -c dsound.c
dsound.c: In function `play_dsound_local':
../libdumbutil/fixed.h:128: Invalid `asm' statement:
../libdumbutil/fixed.h:128: fixed or forbidden register 1 (dx) was spilled
for class DREG.
make[2]: *** [dsound.o] Error 1

Zeile 128 ist:
   __asm__("sar  $16, %%edx\n\t"
         "idivl %3, %%eax\n\t"
         : "=a"(result)
         : "a"(dividend << 16), "d"(dividend), "mr"(divisor)
         : "edx");


Any hints?


MfG/Regards, Alexander

--
Alexander Reelsen         http://joker.rhwd.de
ar at rhwd.net               GnuPG: pub 1024D/F0D7313C  sub 2048g/6AA2EDDB
                          7D44 F4E3 1993 FDDF 552E  7C88 EE9C CBD1 F0D7 313C

-
Hinweise zur Benutzung dieser (und anderer Mailing-Listen) bitte beachten:
-> http://lug-owl.de/mailinglist_hints.html <--



More information about the Linux mailing list