Technical Solutions
Why do I receive incorrect run-time results when using the Sun Studio 12 cc/CC 5.9 compiler with Patch 124861-01 to compile Real-Time Workshop generated code?
Date Last Modified: Friday, June 26, 2009
| Solution ID: | 1-6IJJ4C | |
| Product: | Real-Time Workshop | |
| Reported in Release: | No Release | |
| Platform: | Solaris | |
| Operating System: | Solaris Any |
Subject:
Why do I receive incorrect run-time results when using the Sun Studio 12 cc/CC 5.9 compiler with Patch 124861-01 to compile Real-Time Workshop generated code?
Problem Description:
I am compiling Real-Time Workshop generated code, using the Sun Studio 12 cc/CC 5.9 compiler with Patch 124861-01 installed.
If the Real-Time Workshop generated code casts to int8 and then double as a result of bit-shift operators applied to an int16, I am seeing incorrect numerical results from running the compiled code.
This problem did not occur with the unpatched Sun Studio 12 cc/CC 5.9 compiler.
Solution:This enhancement has been incorporated in Release 2008b (R2008b). For previous product releases, read below for any possible workarounds: |
|
|
Store

