| ??? 10/22/07 11:26 Read: times |
#145999 - Buggy compilers. Responding to: ???'s previous message |
If changing optimisation levels "fixes" a problem, that almost certainly indicates that your code is making some unwarranted assumption - and that assumption fails at the higher optimisation level.
I have a nice example here of very simple, legal C code that will break completely when run through the IAR ARM compiler at the highest optimization setting. |
| Topic | Author | Date |
| CC2430 Timer1 strange behaviour | 01/01/70 00:00 | |
| How to use the 'Insert Code' button | 01/01/70 00:00 | |
| Ok, I post another in pre-formated one ;-) | 01/01/70 00:00 | |
| Brushless1 & 2 | 01/01/70 00:00 | |
| IAR | 01/01/70 00:00 | |
| Linker | 01/01/70 00:00 | |
| limit values | 01/01/70 00:00 | |
| limit values | 01/01/70 00:00 | |
| Why do you suspect the Linker?? | 01/01/70 00:00 | |
| Problem solved! | 01/01/70 00:00 | |
| That indicates a flaw in your code! | 01/01/70 00:00 | |
| Understaning C Compiler Optimisations | 01/01/70 00:00 | |
| Buggy compilers. | 01/01/70 00:00 | |
If you fully understand the issues | 01/01/70 00:00 |



