Ashish Bhatia

use of stack in lcf file.

Discussion created by Ashish Bhatia on Apr 7, 2009
Latest reply on Apr 24, 2009 by CrasyCat

Please help me. I am stuck with this for more than a month.

 

Here are some content of a standard lcf file.

 

.custom :
    {
        ___HEAP_START    = .;
        ___heap_addr    = ___HEAP_START;
        ___HEAP_END        = ___HEAP_START + ___heap_size;
        ___SP_END        = ___HEAP_END;
        ___SP_INIT        = ___SP_END + ___stack_size;
        ___free_mem     = ___SP_INIT;

        . = ALIGN (0x4);
    } >> userram

 

 

Where does RTOS/Compiler use this heap and stack ?

 

We are working with MCF520X mp.

Outcomes