I'm thinking of creating a global static struct, like so:
typedef struct {
Thing things[1024];
} MyBigStruct;
static MyBigStruct s;
Is there a reason, memory-wise or other, why not to put large struct objects in the "static-globals area"? Is there a limit to this area? Should I declare this with malloc
in the heap?
Please refer not to coding practices against global variables, but only to the technical aspect.