Grzegorz Konopko

stack size during linking time

Discussion created by Grzegorz Konopko on Oct 5, 2011
Latest reply on Oct 6, 2011 by Grzegorz Konopko

Hi all

 

I wonder if is possible to get a stack size in "c" module during linking time? I am using FreeScale compiler.

e.g.:

 

================================

extern unsigned __stack_size;

 

unsigned stack_size()

{

 return  __stack_size;

}

=====================================

 

I was looking in linker map file, but seems there is not any object connected with stack size, only with top of stack.

Any clue?

 

/Regards

Outcomes