Discussion forum for the BasicX family of microcontroller chips.
|
Hi; Here's a question to see who really understands memory location on the BX-24... When setting up a queue for communications on Com1, I can declare them either as global or in the Sub Main as local. If declared local, they can be passed ByRef to other subroutines and the function is the same as declaring them as Global. what I noticed is that if they are declared as local, the memory map shows more Ram available to the stack. Questions: 1. Will either method give more Stack space than the other? 2. If the stack was to over-write the Ram, what would go first: Local variables in the offending sub (which could be the same memory location as other local variables in other routines) or global variables? 3. Does anyone have a good test for checking stack Vs variable ram space? ( can ya cut-paste-send it??) Cheers Brad. |