This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Stack & Heap Initialization (RealView MDK-ARM)

There are some codes in the "Startup.s" for "User Initial Stack & Heap".

And, as per this URL
http://www.keil.com/support/man/docs/armlib/armlib_chdegjfd.htm

There are another codes for "Sets up the heap and stack".

It makes me a little confused.

What is the relationship between these two "Stack & Heap Initialization"?

Are they duplicated works, or they have different and important meanings?

Parents
  • > Now I guess that, __user_initial_stackheap() is
    > equivalent to __rt_stackheap_init().

    Not really. You have to reimplement (MDK has done that for you) __user_initial_stackheap() to place stack and heap regions.

    As far as I understand things, __rt_stackheap_init() needs to be changed if you prefer to implement an entirely new stack/heap management.

    I have never had to touch __rt_stackheap_init().

    Regards
    Marcus
    http://www.doulos.com/arm/

Reply
  • > Now I guess that, __user_initial_stackheap() is
    > equivalent to __rt_stackheap_init().

    Not really. You have to reimplement (MDK has done that for you) __user_initial_stackheap() to place stack and heap regions.

    As far as I understand things, __rt_stackheap_init() needs to be changed if you prefer to implement an entirely new stack/heap management.

    I have never had to touch __rt_stackheap_init().

    Regards
    Marcus
    http://www.doulos.com/arm/

Children
No data