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

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

[avr-gcc-list] I/O register optimizations.


From: Bill Somerville
Subject: [avr-gcc-list] I/O register optimizations.
Date: Fri, 21 Nov 2003 13:42:01 +0000

Hello

A question for the compiler gurus.

Is there a combination of avr-gcc options that would cause:

PORTB |= 5;

to be optimized for space and compiled as:

        sbi     0x18,0
        sbi     0x18,2

which would save one flash word at the cost of a cycle?

I assume not because the volatile in the PORTB definition implies that
both bits must be set in one operation, but would like a confirmation of
this.

-- 
Bill Somerville


reply via email to

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