Allocating static memory globally