GCC optimisations / assembler error?
Hi , can someone please point me to a forum where I can ask a GCC compiled code question (if this is the wrong one).
********
I'm new to GCC but have good long assembler experience on other micros (30 years).
I think the compiler is doing something wrong, but, well I could have done something wrong. But I don't think so.
I have the code segment OPT LEVEL1 and NO OPTIMISATION and wanted an opinion.
The code puts itself into an endless loop, as verified in the debugger. I attached my predicament if anyone is interested.
regards.
GCC1.pdf
-
Hi Martin
Thanks for looking. Much appreciated. It IS declared as volatile...... strange huh ?
I do like your explanation. Makes sense.
OK so it is declared as volatile. But. I smell a rat....
Yes in my globals.c I have it asvolatile bool SymbolTimingBit;
but in my globals.h
extern volatile bool SymbolTimingBit;
That was it. Nice one Martin. cheers
Please sign in to leave a comment.
Comments
3 comments