Just trying to wrap my head around something here and I can't seem to find the answer via the search function (although I know the information exists here somewhere).
When you have an XB program which contains variables, and those variables each have names, and each of these named variables have a certain number of letters in the variable name.......
How does one calculate the number of bytes a variable takes up in program space?
So here we have two variables, each containing the same number. Can someone give me the breakdown of the program space used for each of these?
Additionally, if G is referenced 10 times in a program, and GORILLA is referenced 10 times in a program, is the initial allocation of memory for that particular variable the biggest usage, or is program space eaten up each time that variable is referenced?
IIRC, each variable is tokenized and then references to that initial variable take less space than the initial variable allocation... but I can't find the answer I'm looking for.
If I have a variable GORILLA defined in Line 100, but then modify or reference it in lines 160, 170, 180, and 300, am I chewing up unnecessary program space each time it is referenced (vs if it was called G) or do the following references only hit the program space as a token?
***Trying to weigh readability against optimization with a large program I need to down-size)
Please give me a hand. Thanks in advance!