AnsweredAssumed Answered

Manuplating Stack Size

Question asked by sandeep naik on Jul 7, 2012
Latest reply on Jul 7, 2012 by bigmac

I  wish to manipulate stack size for individual function.

My default stack size is 0x80 (128 bytes).

I have a function in which I dynamically allocate and dealloacte memory dynamically (about 120 bytes). I do-not wish to make it an global variable because it will unnecessary occupy RAM space rest of time when not used.

Any suggestion.

Can also someone explain me if implication of stack size.

If I declare to particular size of stack and don't use it completely then would I suffer internal fragmentation.

I am using MC9S08LG32 controller and CW 10.2

Thank You.