-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Labels
Description
Globals, and static variables in functions, are (much) faster when they can be placed in the zero page rather than main memory. We can give this zero page real estate to as many as such variables as possible. The call stack doesn't need much space after all.
Perhaps let the programmer hint which variables are candidate for such preferential treatment. ("static register" comes to mind, but that's not a fully developed idea, because we can have pointers to such variables.)