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

8051 Data - Free space, Determining of stack size

Hi,

I have been using the 8051 for several weeks. It is not yet clear to me how free space is determined in DATA and how the stack size is determined.

In the SCILABS_STARTUP.A51 file I see that the STACK segment is used to determine the start of the stack, however I can't find the linker file and see how  the STACK segment was defined and how its' address is assigned. I also can't find these settings in project settings.

I also see that static variables in functions are declared in DATA. Can anyone give some pointers or a URL on how free space in DATA is determined ? Is it a combination of 

  • Data already declared in DATA
  • Static variables in functions 
  • How reliant functions would be in using the stack
  • Number of register banks used

Any help would be appreciated.

thanks,

Rochus

0