Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
|
'm having trouble with the optimizer in the SHARC VisualDSP 2.0 removing "un-necessary" code, which renders the code non- functional. Is there *any* way to turn off the optimizer in the source module with a pragma? Thanks --Rob Alexander |
|
|
|
For C files, you can right-clicking on the C file in the Project Window, select File Options-> Build With File Specific Settings (button) -> Compile (tab) and disable optimization (button). You can also add Additional Options to control the optimization level (-O0 to disable optizations) Regards Don Waldron > -----Original Message----- > From: [SMTP:] > Sent: Wednesday, March 06, 2002 6:13 PM > To: > Subject: [adsp] VisualDSP 2.0 optimizer > > 'm having trouble with the optimizer in the SHARC VisualDSP 2.0 > removing "un-necessary" code, which renders the code non- > functional. Is there *any* way to turn off the optimizer in the source > module with a pragma? > Thanks > --Rob Alexander > _____________________________________ > /groups.php3 |
|
On Wed, 2002-03-06 at 15:13, wrote: > 'm having trouble with the optimizer in the SHARC VisualDSP 2.0 > removing "un-necessary" code, which renders the code non- > functional. Is there *any* way to turn off the optimizer in the source > module with a pragma? Can you provide an example? Is this code that should be using a volatile qualifier to disable optimization? You may also want to check with ADI for interim fixes that address specific optimizer bugs. |
|
The optimization can be disabled by deselecting the Enable optimization in Project->Options->Compile->General. Also are you optimizing for size or for performance. when you are optimizing for the size the com-piler disables loop unrolling, delay slot filling, and jump avoidance. I think the problem lies there. Alok Modak IIT Bombay "Kenneth Porter" wrote: On Wed, 2002-03-06 at 15:13, wrote: > 'm having trouble with the optimizer in the SHARC VisualDSP 2.0 > removing "un-necessary" code, which renders the code non- > functional. Is there *any* way to turn off the optimizer in the source > module with a pragma? Can you provide an example? Is this code that should be using a volatile qualifier to disable optimization? You may also want to check with ADI for interim fixes that address specific optimizer bugs. _____________________________________ /groups.php3 Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in |