I'm not using 3.4.2, but in general: We use extensive optimization in all of our products (we couldn't live without it). Without optimization gcc basically creates paranoid assembly code. With optimization, gcc basically assumes that you said exactly what you mean when you wrote your code, which isn't always true. Perhaps the most common problems are variable declarations. When a variable can change outside the current scope (for example, in an interrupt), it must be declared as volatile so that the compiler won't assume that the variable hasn't changed since the last time it was accessed. That was the most common problem I've run into. On Fri, 18 Feb 2005 17:52:07 -0000, Gus <gus_is_working@...> wrote: > > Hello, > > Anyone is using GCC compiler version 3.4.2 WITH optomization? > > When I enable optomization, my applicatin acts funny! I am not sure > why. > > > Gus > > > > > ________________________________ > Yahoo! Groups Links > > To visit your group on the web, go to: > http://groups.yahoo.com/group/lpc2000/ > > To unsubscribe from this group, send an email to: > lpc2000-unsubscribe@yahoogroups.com > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Bryce Schober
Message
Re: [lpc2000] GCC runing optomization!
2005-02-18 by Bryce Schober
Attachments
- No local attachments were found for this message.