avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] problem with inline asm


From: Jarmo Blomster
Subject: [avr-gcc-list] problem with inline asm
Date: Thu, 20 Jan 2005 08:14:34 +0200

Hi,

I can't figure out why the two extra lds's are generated for my inline asm
operation below. The extra lines that I do not require are the lines 223 and
224.


  89:main.c        ****         asm volatile (
 213                    .LM3:
 214                    /* #NOAPP */
 215 0004 A091 0000             lds r26,tovr
 216 0008 B091 0000             lds r27,(tovr)+1
 217                    /* #APP */
 218 000c 1196                  adiw r26, 1
 219                            
 220                    /* #NOAPP */
 221 000e B093 0000             sts (tovr)+1,r27
 222 0012 A093 0000             sts tovr,r26
 223 0016 8091 0000             lds r24,tovr
 224 001a 9091 0000             lds r25,(tovr)+1
  90:main.c        ****         "adiw %0, 1"    "\n\t"          
  91:main.c        ****         : "=x" (tovr)
  92:main.c        ****         : "x" (tovr)
  93:main.c        ****         );

Is there any possibility to get rid of those instructions?

//jarmo

I'm sorry, I duplicate this message because my SMTP provider has some
problems with delivering messages yesterday.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]