Search:

Type: Posts; User: esben

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Stack usage

    by esben
    Replies
    4
    Views
    4,681

    I found it, thanks!

    I found it, thanks!
  2. Thread: Stack usage

    by esben
    Replies
    4
    Views
    4,681

    >Doesn't that have a memory browser? Dont think...

    >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...
  3. Thread: Stack usage

    by esben
    Replies
    4
    Views
    4,681

    Stack usage

    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...
  4. Replies
    4
    Views
    1,936

    >How come it's not allocated where? The stack......

    >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...
  5. Replies
    4
    Views
    1,936

    Static array is allocated in undefined area

    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) ....
  6. Replies
    2
    Views
    1,559

    Thanks!

    Thanks!
  7. Replies
    2
    Views
    1,559

    What's wrong with my alignment?

    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...
  8. Replies
    3
    Views
    8,674

    Salem> I havnt made any specifications in the...

    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...
  9. Replies
    3
    Views
    8,674

    Linker Command File

    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 */
    ...
  10. Replies
    15
    Views
    8,246

    Ok...seems I'm too quick to ask you guys advice...

    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...
  11. Replies
    15
    Views
    8,246

    Ok, more question: 1) I read the array of...

    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...
  12. Replies
    15
    Views
    8,246

    correction to the above: '-100' would be read...

    correction to the above:

    '-100' would be read as 45, 49, 48, 48...right?
  13. Replies
    15
    Views
    8,246

    Oh! I just think I realized something: If I...

    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?
  14. Replies
    15
    Views
    8,246

    Hi! Thanks for your replies. The reason why I...

    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...
  15. Replies
    15
    Views
    8,246

    Reading char as integer.

    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){...
  16. Replies
    10
    Views
    1,376

    Sure! I see it...and I would have to run the loop...

    Sure! I see it...and I would have to run the loop n/2 itertions, right?
  17. Replies
    10
    Views
    1,376

    Salem: thanks for you helpful suggestions. >I...

    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...
  18. Replies
    10
    Views
    1,376

    >Salem: >1. How do you know it is a cache...

    >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...
  19. Replies
    10
    Views
    1,376

    >the stack works quite well and it's efficient....

    >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...
  20. Replies
    10
    Views
    1,376

    Defining allocation space.

    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...
  21. Replies
    10
    Views
    2,830

    Thanks for your replies guys! All helpfull. ...

    Thanks for your replies guys! All helpfull.

    \Esben.
  22. Replies
    10
    Views
    2,830

    >>Salem, How dynamic... good point... What...

    >>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...
  23. Replies
    10
    Views
    2,830

    Hi. Yeah I guess using a loop and a read...

    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...
  24. Replies
    10
    Views
    2,830

    Sarcasm is always funny...

    Sarcasm is always funny...
  25. Replies
    10
    Views
    2,830

    Read into dynamic array.

    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.
Results 1 to 25 of 30
Page 1 of 2 1 2