This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hey guys, I have big trouble with the the restrict qualifier in c++ sourcecode. In case I'm optimizing some sourcecode. The sourcecode contains mostly references to arrays. So here my questions.
Does the restrict qualifier the same effect on references like on arrays?
and
May 'const read only arrays' or references generally set to restict for better dsp processing?
big thanks soren
Hi Soeren,
Soeren says said:May 'const read only arrays' or references generally set to restict for better dsp processing?
yes, to avoid the ovelapping of memory and to guarantee the correct memory access by the pointers or references.
The detailed information on "restrict" qualifier is given at the "C6000 C/C++ Optimizing Compiler v7.0 User's Guide" http://www.ti.com/lit/ug/spru187q/spru187q.pdf particularly in section, 6.4.5
You can use the TI compiler forum for this type of queries.
Regards,
Shankari
-------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.
--------------------------------------------------------------------------------------------------------
One good example of how restrict is typically used can be found in this wiki article.
Thanks and regards,
-George