Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

malloc / memory limitation

2 views
Skip to first unread message

gr...@ete.q40.de

unread,
Oct 4, 2001, 2:45:14 PM10/4/01
to
Hi!

I have a problem with allocating big portions of memory with malloc().
It seems not to be possible to get more than 10 MB with C68 programs.

After browsing thru the C68 library sources I found a variable _memmax
that's limiting memory to 9999999 bytes. What ist the right way to
increase this value? Setting it again in my own program?

Thanx

Claus


{$@daria.co.uk Jonathan R. Hudson

unread,
Oct 4, 2001, 2:55:16 PM10/4/01
to
In article <Pine.LNX.4.10.10110...@ete.q40.de>,
<gr...@ete.q40.de> writes:
geqd> After browsing thru the C68 library sources I found a variable _memmax
geqd> that's limiting memory to 9999999 bytes. What ist the right way to
geqd> increase this value? Setting it again in my own program?

AFAIK, yes. Stuff like gs uses a similar trick to get a bigger stack
than default.

--
"You left them alone in a room with a penguin?!
Mr Gates, your men are already dead."
-Seen on a Slashdot posting by Tough Love.

0 new messages