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

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

Re: [avr-gcc-list] Code Optimisation question re: volatile


From: D. Daniel McGlothin
Subject: Re: [avr-gcc-list] Code Optimisation question re: volatile
Date: Fri, 23 Jul 2004 07:15:06 -0400

See Dennis Ritchie's C Reference Manual (May 1975)
http://cm.bell-labs.com/cm/cs/who/dmr/cman.pdf, bottom of page 8.

See Eric Huss's 1997 The C Library Reference Guide
http://www.acm.uiuc.edu/webmonkeys/book/c_guide/ section 1.5.5.

The two references differ as to the arrangement of the assignment and
operator tokens.

In brief,

pwm_state ^= _b00000011

'expands' to

pwm_state = pwm_state  ^ _b00000011


If you are interested in some history of C, pop up one and two levels from
that url.

HTH,
Daniel


----- Original Message -----
From: "Svein E. Seldal" <address@hidden>
To: "David Brown" <address@hidden>
Cc: <address@hidden>
Sent: Friday, 23 July 2004 06:14
Subject: Re: [avr-gcc-list] Code Optimisation question re: volatile


> A little question on the side:
>
> David Brown wrote:
> >     pwm_state ^= _b00000011;
>
> Is this syntax standard C? I've never seen this before...
>
>
> Regards,
> Svein
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list
>
>





reply via email to

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