Bug in latest IAR MSP430 compiler optimization???
- From: larwe <zwsdotcom@xxxxxxxxx>
- Date: Sun, 27 Apr 2008 04:56:12 -0700 (PDT)
Has anyone else observed that the latest kickstart MSP430 compiler
from IAR has an extremely serious code generation bug when configured
with optimizations=high,size?
IAR C/C++ Compiler for MSP430
V4.10E/W32 [Kickstart] (4.10.5.3)
C:\Program Files\IAR Systems\Embedded Workbench 5.0\430\bin\icc430.exe
2/15/2008 11:03:06 AM, 15015936 bytes
I have a test case that demos the problem perfectly, but it's tied to
specific hardware. The symptom is that a pointer, if declared locally,
is being sent off into random-land after one iteration of a loop. If
the same declaration is moved out into global scope, or if
optimization is turned off, the problem disappears. Target is
MSP430F2012.
I haven't yet groveled through the assembly output to see exactly what
the difference between the two output flavors is. But this is such an
astoundingly show-stopping bug I'm appalled it escaped.
.
- Follow-Ups:
- Re: Bug in latest IAR MSP430 compiler optimization???
- From: andlind@xxxxxxxxx
- Re: Bug in latest IAR MSP430 compiler optimization???
- From: David Brown
- Re: Bug in latest IAR MSP430 compiler optimization???
- From: Vladimir Vassilevsky
- Re: Bug in latest IAR MSP430 compiler optimization???
- From: Chris H
- Re: Bug in latest IAR MSP430 compiler optimization???
- Prev by Date: Re: Had an interview
- Next by Date: Re: Had an interview
- Previous by thread: Which board..
- Next by thread: Re: Bug in latest IAR MSP430 compiler optimization???
- Index(es):
Relevant Pages
|