Hi All, Does anyone know if theres to force the CCS 2 compiler NOT to optimize a particular function/file? Some preprocessor directive? Also, has anyone tried implementing an mp3 encoder/decoder on the C6711 DSK board? Thanks! _____________________________________________________________ |
|
Compiler question + MP3 Encoder on C6711 DSK
If fuction is written in c, use #ifdef OPT (choose any macro) function....... ............. #endif it will compile function only if Macro OPT is defined... similarly..... If function is in aseembly.. use directive .if ($isdefed("OPT") = 1) function.... .......... .endif -----Original Message----- From: [mailto:] Sent: Thursday, July 03, 2003 4:30 AM To: Subject: [c6x] Compiler question + MP3 Encoder on C6711 DSK Hi All, Does anyone know if theres to force the CCS 2 compiler NOT to optimize a particular function/file? Some preprocessor directive? Also, has anyone tried implementing an mp3 encoder/decoder on the C6711 DSK board? Thanks! _____________________________________________________________ _____________________________________ 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://www.yahoogroups.com/group/c6x Other Groups: http://www.dsprelated.com ">http://docs.yahoo.com/info/terms/ |
Hi Enliteneer, I guess your question is about Optimizing a function or file.. Well !! I guess the simplest way is switch off the file level optimization settings for the desired file and set it to none. Doing so, will force the compiler to generate an object file devoid of the optimizations on all the functions present in that file. You can go to that particular file, right click and choose file specific options in which you can set the optimization level to none. I guess this answers the question. Using a macro will only help in case you don't wish to compile a function and doesn't help in optimizing the same at the function / file level. Hope this solves your problem. I don't know anything about mp3 encoder or decoder on C6711 DSK board. With Warm Regards, Ganesh ----- Original Message ----- From: Ajeet K Mall To: ; Sent: Thursday, July 03, 2003 7:52 AM Subject: RE: [c6x] Compiler question + MP3 Encoder on C6711 DSK If fuction is written in c, use #ifdef OPT (choose any macro) function....... ............. #endif it will compile function only if Macro OPT is defined... similarly..... If function is in aseembly.. use directive .if ($isdefed("OPT") = 1) function.... .......... .endif -----Original Message----- From: [mailto:] Sent: Thursday, July 03, 2003 4:30 AM To: Subject: [c6x] Compiler question + MP3 Encoder on C6711 DSK Hi All, Does anyone know if theres to force the CCS 2 compiler NOT to optimize a particular function/file? Some preprocessor directive? Also, has anyone tried implementing an mp3 encoder/decoder on the C6711 DSK board? Thanks! _____________________________________________________________ _____________________________________ 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://www.yahoogroups.com/group/c6x Other Groups: http://www.dsprelated.com ">http://docs.yahoo.com/info/terms/ _____________________________________ 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://www.yahoogroups.com/group/c6x Other Groups: http://www.dsprelated.com ">http://docs.yahoo.com/info/terms/ |
Just put your MP3 encoder/decoder function in one .c file and add it to your project. In the project view, right click on that file and choose the "File specific options" and set the Opt Level to None. Regards, William --- wrote: > Hi All, > > Does anyone know if theres to force the CCS 2 > compiler NOT to > optimize a particular function/file? Some > preprocessor directive? > > Also, has anyone tried implementing an mp3 > encoder/decoder on the > C6711 DSK board? > > Thanks! > _____________________________________________________________ > > _____________________________________ > 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://www.yahoogroups.com/group/c6x > > Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/ __________________________________ |
wrote: > > Hi All, > > Does anyone know if theres to force the CCS 2 compiler NOT to > optimize a particular function/file? Some preprocessor directive? > > Also, has anyone tried implementing an mp3 encoder/decoder on the > C6711 DSK board? > > Thanks! Yes, use! -o0 -mu Regards Jagadeesh Sankaran |
wrote: >Hi All, > >Does anyone know if theres to force the CCS 2 compiler NOT to >optimize a particular function/file? Some preprocessor directive? > >Also, has anyone tried implementing an mp3 encoder/decoder on the >C6711 DSK board? FWIW, I once downloaded an open source MP3 decoder called MAD. I hacked together a Makefile and built it for C62x and the compiler did not barf on the code and it generally seemd like a god starting point. I never got around to actually running the thing. The relly interesting thing was that when I compiled it the compiler worked through the C files in the decoder library quite rapidly until it got to idct.c and then it just hung there. At the same time the CPU load went up to 80% and stayed there for 30 seconds or so and then it continued. It was lik the compile finaly found some decent signal processing and just jumped in there and knocked itself out. I really wished I had tried to rename the file to something else compiled it, maby TI has some tricks for benchmarking that got triggered. Anyway look into MAD, its on sourceforge. /Regards, P Ligander |
I guess youve got ur answer on the optimization options from everybody...as far as the implementation of mp3 in c6711 dsk...well, ive tried...the problem one does face is the sampling rate that you get out of ad535-which is just 8khz and that too fixed...so thats where the nreal problem is...otherwise you have immense processing power ...so it can be comfortably implemented in and c optimized to make it work in reaL time without mu ch of an issue...if you can procure a daughter card,say pcm3003 board for variable sampling rate you shd be good to go...there are a couple of people at rit and lund university who have implemented mp3 on c6711...check those site out...but my gut feeling is that mp3 on 6711 is not the right choice... Bhooshan MSN give you more space! 5 times more storage |
The optimization worked fine. I had to shuffle things around a bit, in order to get all desired non-optimizable functions in one file, but it worked. It would have been nice if it can be set on a function level rather than on a file, but se la vi! As far as the mp3 encoder, I couldnt find the rit and lund university site with the mp3 info. Do you recall the links? Thanks, Erich ---------Included Message---------- >Date: Sat, 05 Jul 2003 17:04:04 +0000 >From: "Bhooshan iyer" <> >Reply-To: "Bhooshan iyer" <> >To: <>, <>, <>, > <> >Subject: Re: [c6x] Compiler question + MP3 Encoder on C6711 DSK > ><html><div style='background-color:'><DIV> ><P><BR><BR></P></DIV>Hi, ><DIV></DIV> ><P>I guess youve got ur answer on the optimization options from everybody...as >far as the implementation of mp3 in c6711 dsk...well, ive tried...the problem >one does face is the sampling rate that you get out of ad535-which is just 8khz >and that too fixed...so thats where the nreal problem is...otherwise you have >immense processing power ...so it can be comfortably implemented in and c >optimized to make it work in reaL time without mu ch of an issue...if you can >procure a daughter card,say pcm3003 board for variable sampling rate you shd be >good to go...there are a couple of people at rit and lund university who have >implemented mp3 on c6711...check those site out...but my gut feeling is that >mp3 on 6711 is not the right choice...</P> ><P>Bhooshan</P></div><br clear=all><hr>MSN give you more space! <a >href="http://g.msn.com/8HMVENIN/2746??PS=">5 times more storage</a> </html> > ---------End of Included Message---------- _____________________________________________________________ |