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

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

[avr-gcc-list] Where are the optimisations?


From: Gavin Jackson
Subject: [avr-gcc-list] Where are the optimisations?
Date: Mon, 23 Jun 2003 09:58:28 +1200

For some reason the in and out instructions don't seem to be
used no matter what optimisation level I try. I'm sure they used
to, what am I doing wrong? I'm using WinAVR 20030424.

static void Initialise ( void )
{
    outb( DDRB, 0x20);
  5c:   80 e2           ldi r24, 0x20   ; 32
  5e:   87 bb           out 0x17, r24   ; 23
    outb( DDRC, 0x2B);
  60:   8b e2           ldi r24, 0x2B   ; 43
  62:   84 bb           out 0x14, r24   ; 20
    outb( DDRD, 0x3F);
  64:   8f e3           ldi r24, 0x3F   ; 63
  66:   81 bb           out 0x11, r24   ; 17
}
  68:   08 95           ret


Gavin



reply via email to

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