[comp.sys.mac.programmer] no structs > 32K in MPW C 3.1 !?!

wade@hobbes.ucsd.edu (Wade Blomgren) (10/17/90)

OK...large structures can't be declared since segments are limited to
32K bytes.  So the solution is typically to typedef the structure 
and then malloc the storage for it at runtime.

The problem is this doesn't seem to be allowed in MPW C 3.1 (it works
fine in MPW C 2.0.2).  The compiler chokes when you try to typedef
a struct whose instances would be > 32K.  Note that I am just
talking about defining the struct, not allocating it.  In my particular
case I have a struct consisting of several large arrays of floats.

I've checked this with several other people and they have verified
the problem.  Has anyone else run up against this?  Is there
a solution? 

Wade Blomgren
wade@hobbes.ucsd.edu