I found it, thanks!
Type: Posts; User: esben
I found it, thanks!
>Doesn't that have a memory browser?
Dont think so... It has a "symbol browser", but that only shows what in what address my stack is allocated.
My option right now, is to step through the code...
Hi.
I would like to know exactly how much stack my program needs. I have been told that I can start by making the stack excessively large, fill it with a certain pattern, like AAAAAAAA, and after...
>How come it's not allocated where?
The stack...
Btw, the array size is rather large, but I have allocated around 20 KB of stack, so I guess it should fit...
Hi all.
In the following code the array 'splitbuf' is allocated outside any of the output sections defined by my linker command file.
#define QMFB_SPLITBUFSIZE_BATCH (8192/JPC_BATCH_SIZE) ....
Thanks!
Hi.
I am trying to align an array to a 32 bit boundry. I wrote the following code to achieve that:
static jpc_fix_t splitbuf[QMFB_SPLITBUFSIZE];
&splitbuf = (jpc_fix_t*) ( (int)(&splitbuf...
Salem>
I havnt made any specifications in the source code about my memory design. It's all in the LCF file above. I am using TI.s Code Composer Studio 3.1 to develop my project.
I declared...
Hi.
I am trying to allocate a certain array used by my program in external memory. My LCF file looke like this:
MEMORY
{
/* vecs + L2SRAM + CIO + STACK = size of internal memory */
...
Ok...seems I'm too quick to ask you guys advice here. At least I fount that in the following read
fscanf(InFile, "%hi", &DataMatrix[i]);
I should remember the 'h' in the modifier, when reading...
Ok, more question:
1)
I read the array of numbers -49 -16 -67 - 80 as short integers.
When I output them again, I write: -49 -1 - 16 -1 -67 -1 -80 -1
Why is this?
2)
I tried processing the...
correction to the above:
'-100' would be read as 45, 49, 48, 48...right?
Oh!
I just think I realized something:
If I wanna read in the number '-100' as a char, it will actually be read as 4 chars:
32, 49, 48, 48,
and there goes the memory savings... Right?
Hi! Thanks for your replies.
The reason why I wanna use as small a datatype as posible preferably char, is that I need to read in a 512x512 8 bits/pxl image into a 1024KByte L2 cache.
By using...
Hi.
I want to read a matrix of 8-bit integers, in the range -127-to-128, into my program for further processing.
My code looks like like this:
signed char* getdata(int rows, int columns){...
Sure! I see it...and I would have to run the loop n/2 itertions, right?
Salem: thanks for you helpful suggestions.
>I would suggest you unroll it and eliminate the state variable altogether.
I dont understand how UNROLL together with your code example corresponds...
>Salem:
>1. How do you know it is a cache problem?
I have runned a profiling analysis on the code, and can see that I have 5% cpu stall cycles caused by cache read and write misses...
>2. What...
>the stack works quite well and it's efficient. Where else do you want to put them?
Arent variables normally allocated on the heap?
I am tuning some code to run fast on a TI c6416 dsp. I have...
Hi friends.
I am wondering if there are any methods for defining the memory allocation for a function level "symbol" (fx pointer or array).
I know the DATA_SECTION pragma can be used on file...
Thanks for your replies guys! All helpfull.
\Esben.
>>Salem,
How dynamic... good point...
What I would like to do is to return the DataMatrix[][] variable from one function, back to an int pointer (int *p) in the calling function. Is this...
Hi.
Yeah I guess using a loop and a read function is a pretty good advice, since it's the only way (as far as I know) to read in a vector or matrix, but I was kind of hoping for some more specific...
Sarcasm is always funny...
Hi all,
I'm sitting and tring to read a matrix into a dynamic array. Does anyone have a smart way of doing this?
Thanks for oyur time.
Esben.