'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 |
|
VisualDSP 2.0 optimizer
Started by ●March 7, 2002
Reply by ●March 7, 20022002-03-07
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 > _____________________________________ > Note: If you do a simple "reply" with your email client, only the author > of this message will receive your answer. You need to do a "reply all" if > you want your answer to be distributed to the entire group. > > _____________________________________ > About this discussion group: > > To Join: Send an email to > > To Post: Send an email to > > To Leave: Send an email to > > Archives: http://groups.yahoo.com/group/adsp > > Other Groups: http://www.dsprelated.com/groups.php3 > ">http://docs.yahoo.com/info/terms/ > |
Reply by ●March 8, 20022002-03-08
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. |
Reply by ●March 12, 20022002-03-12
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. _____________________________________ Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. _____________________________________ About this discussion group: To Join: Send an email to To Post: Send an email to To Leave: Send an email to Archives: http://groups.yahoo.com/group/adsp Other Groups: http://www.dsprelated.com/groups.php3 ">http://docs.yahoo.com/info/terms/ 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 |