Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/22/07 08:23
Read: times


 
#145989 - Problem solved!
Responding to: ???'s previous message
To Andy: You're right, it wasn't the linker. In fact it was the compiler. I don't know how the optimization works, but now I don't use it anymore.

Problem's been solved! I put the compiler's optimization to none, and it works just fine. I don't know why the put such a stupid optimization algorithm that removed part of the code while compiling it.

But one thing that I don't understand, it seemed to me that everything is translated correctly from C to ASM. So, when and where exactly it does the optimization?

List of 14 messages in thread
TopicAuthorDate
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      

Back to Subject List