At 05:09 PM 1/24/05 +0000, you wrote:
>I ran into a problem with the Keil compiler and code optimization.
>The default optimization level was such that lines of code that did
>dummy reads of registers, this is how some bits are cleared, were
>optimized out. Needless to say the code would not work until I
>lowered the optimization level and thus retained these lines of code.
> At least in Keil it is easy to see, when debugging, which lines are
>executed and which are not.
Were those registers declared with a void qualifier? If so than that is
definitely a bug.
Robert
" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "
Kelvin Throop, IIIMessage
Re: [lpc2000] Re: Code optimization problem
2005-01-24 by Robert Adsett
Attachments
- No local attachments were found for this message.