malloc array bigger than 32k on a 16bit int machine?

g liu gwoho at nntp-server.caltech.edu
Wed Mar 13 17:32:22 AEST 1991


is there a standard way to allocate dynamically an array bigger
than 32k on a machine with 16bit ints? i think malloc calls
brk, which takes an int, so it cant bump a chunk bigger than 32k.
what i am really interested in is being able to allocate arrays
arbitrarily big. (a solution for allocating 42k arrays would be
interesting to me, but i would really like a significantly less
limited way to get memory)

gwoho liu.



More information about the Comp.unix.questions mailing list