Subject: Re: USB stack needs early review (Re: Someone should fix our USB stack...)
To: None <tech-kern@netbsd.org>
From: Michael van Elst <mlelstv@serpens.de>
List: tech-kern
Date: 03/23/2007 10:31:43
mouse@Rodents.Montreal.QC.CA (der Mouse) writes:
>int x;
>void foo(void)
>{
> int y;
> x = ...;
> somefunction();
> y = x;
>}
>Optimizing this by holding the value stored into x in a register across
>the call to somefunction is invalid here
What about 'static int x;' and somefunction() being external to this
compilation unit?
--
--
Michael van Elst
Internet: mlelstv@serpens.de
"A potential Snark may lurk in every tree."