Quote:
Originally Posted by knc1
|
This is another great document, Currently this is just out of my skills price range (like so many other things) Here's a selection of the things I am stuck on:
To keep it simple, in precis, the points are about
:
- *restrict
- Pragma: DATA_ALIGN and DATA_MEM_BANK ( and pragmas in general for the processors we have on the table)
- _nassert
Okay so the full blurb:
http://en.wikipedia.org/wiki/Restrict - for some reason I cant get my compiler to swallow this. no doubt some include or library somewhere is not being correctly invoked / linked by me - any thoughts? -lAwesomeRestrictLibrary? hehehe
I understand it is an assertion that values will only be accessed singly during operation to provide further optimisation options for the compiler. I'll keep reading on this one.
I'm sure it a noob mistake.
I am stuck on, data-aligning the values in memory, The Pragma: DATA_ALIGN (and also giving my hassle is: The Texas Instruments PRAGMA: DATA_MEM_BANK (which is explained in lovely detail here
http://www.dsprelated.com/groups/c6x/show/4176.php),) can I find similar implementations of memory aligned / memory buffered value management for the complete range of K Processors or is this going to be one build for each processor type? (the implication of DATA_MEM_BANK is performance related to prevent mem read lock, If I am reading the docs right and could possibly be ignored to just get things going I suppose, I'll double check that thought)
But the data alignment is crucial for the maths - again assuming I understand the numbers right - so that's a
required
Is this as simple as including the right Pragma.h file?
http://processors.wiki.ti.com/index....Can_Understand seems to imply arm support of some nature - please be gentle with me, I'm trying to get my head up to speed.
Last thought
_nassert ((int) pIn % 8 == 0);
an assertion to the preprocessor that the pln WILL be divisible by 8, if your value is NOT divisible by 8 after you say that it is - bad things will likely happen -
Again I just can't determine if I should be able to implement this. Again forgive me if I'm being nooby.
Finding suitable pragmas or implementing the
http://processors.wiki.ti.com/index....Can_Understand ones, also _nassert