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. Richard --- In lpc2000@yahoogroups.com, "Gus" <gus_is_working@y...> wrote: > > In my case, my code doesn't work when optomization is enabled! > > Gus > --- In lpc2000@yahoogroups.com, delta delta > <deltacorporation2005@y...> wrote: > > Hello, > > We are using GNU C compiler and Philips LPC2294 ARM processor. > > We need to know how code optimization is used in GNU compiler? > > Can we exclude some files from optimization ? > > > > Thanks, > > Delta Corporation. > > India. > > > > > > Yahoo! India Matrimony: Find your life partneronline. > > > > [Non-text portions of this message have been removed]
Message
Re: Code optimization problem
2005-01-24 by Richard
Attachments
- No local attachments were found for this message.