[A83] Re: Malloc
[Prev][Next][Index][Thread]
[A83] Re: Malloc
Unlike the 86 where there is 15kb of free memory, malloc functions on the
83+ would require creation of a temporary appvar or use of free memory (this
is not recommended). APPS that require large amounts of free RAM in order to
run would seem rather ill behaved, IMHO. If you look at page 17 of the SDK
guide, there are 3158 bytes worth of RAM areas marked as potentially safe.
For 50-100 bytes you might consider using the temporary swap area mentioned
on page 17.
Has the base code problem with z88dk been fixed? The last time I looked at
it, it required more than 9kb just for the C startup code.. that's
ridiculous. You'd only be able to write 7kb worth of C code (fills up pretty
fast when it's C), before you'd go into a 32kb slot.
-----Original Message-----
From: assembly-83-bounce@lists.ticalc.org
[mailto:assembly-83-bounce@lists.ticalc.org]On Behalf Of Henk Poley
Sent: Tuesday, June 26, 2001 12:55 PM
To: assembly-83@lists.ticalc.org
Subject: [A83] Malloc
Uhm, with all these app things around, the problem is you don't have
writeback, normaly you should have enough memory in the safemem areas, but
has somebody already thought of something like a malloc routine? (to
dynamicaly allocate memory, in a (temp-)file for example).
Anyways, while adding app-support to the z88dk, where should I store the
(temporary) vars used by the startupcode? In a way that the user has as
much normal memory areas free (to put in there own vars), I need only about
50-100 bytes.
Henk Poley
References: