Tagged: variables
- This topic has 2 replies, 2 voices, and was last updated 5 years, 6 months ago by
Torben.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
May 30, 2018 at 11:27 am #7322
Torben
ParticipantApologies if I’ve missed this somewhere on your site, but what is the maximum number of variables that Crumble supports – and what is the range of each variable?
May 30, 2018 at 11:53 am #7324Joseph
KeymasterHi Torben,
All variables are signed 16-bit ints, so their range is -32768 to 32767.
As for the maximum number of variables, the short answer is 32 to 48 depending on what else the program is doing.
The longer answer is that there isn’t a fixed limit on the number of variables, but you will run out of free memory if you create enough. If your program did nothing else, there is enough space on the stack memory for 64 variables. A typical program might need 16 free stack positions, hence 48 remaining.
Hope this helps,
Joseph
May 30, 2018 at 2:18 pm #7326Torben
ParticipantFantastic – thanks Joseph.
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.