View Single Post
Old 07-16-2012, 09:00 AM   #212
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Nooby Dooby Doo

Quote:
Originally Posted by knc1 View Post
And an example of how to do it, with example C code?
http://processors.wiki.ti.com/index...._of_Real_Input
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

Last edited by Alexander Turcic; 07-27-2012 at 04:45 PM.
twobob is offline   Reply With Quote