AnsweredAssumed Answered

Question on stack and heap configuration for VDK based tigersharc project

Question asked by Mason on Dec 19, 2010
Latest reply on Feb 8, 2011 by jeyanthi.jegadeesan

Hi everyone,

              If I want to place the heap and stack on the external memory, what should I do? Do I just need to carry out some modifications to the VDK-TS201.LDF like the following:

             The original statements for heap and stack allocation is like this:

  jstackseg
    {
        ldf_jstack_limit = .;
        ldf_jstack_base = . + MEMORY_SIZEOF(mem4_Stack);
    } > mem4_Stack

    kstackseg
    {
        ldf_kstack_limit = .;
        ldf_kstack_base = . + MEMORY_SIZEOF(mem6_Stack);
    } > mem6_Stack

    sec_mem4_heap
    {
        ldf_defheap_base = .;
        ldf_defheap_size = MEMORY_SIZEOF(mem4_Heap);
    } > mem4_Heap

    sec_mem6_Heap
    {
        ldf_altheap_base = .;
        ldf_altheap_size = MEMORY_SIZEOF(mem6_Heap);
    } > mem6_Heap

           

              The edition with modification is like this:

  jstackseg
    {
        ldf_jstack_limit = .;
        ldf_jstack_base = . + MEMORY_SIZEOF(MSSD0);
    } > MSSD0

    kstackseg
    {
        ldf_kstack_limit = .;
        ldf_kstack_base = . + MEMORY_SIZEOF(MSSD1);
    } >MSSD1

    sec_mem4_heap
    {
        ldf_defheap_base = .;
        ldf_defheap_size = MEMORY_SIZEOF(MSSD2);
    } > MSSD2

    sec_mem6_Heap
    {
        ldf_altheap_base = .;
        ldf_altheap_size = MEMORY_SIZEOF(MSSD3);
    } > MSSD3

 

Merry Christmas in advance. Thanks!

 

-Mason

Outcomes