On 09.03.2011 17:04, Abhay sing wrote:
> I have attached both the .elfs file and the code. I guess its some kind of
> bug related to msp430-gcc.
Can't see any file attached. But how do you implement delay routine? If
something like
int a;
for(a = 0; a < 1000; ++a)
;
then compiler just optimized this code away as "just wasting time code". You
asked about optimization? Your code became much faster, as you asked!
Try to declare your cycle wariable as "volatile int a;" to avoid cycle
optimization.
--
Regards,
Sergey A. Borshch mailto: [email protected]
SB ELDI ltd. Riga, Latvia
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users