Re: [cc65] Relocating the stack?

From: Ullrich von Bassewitz <>
Date: 2010-08-02 09:58:43
On Mon, Aug 02, 2010 at 02:54:00AM -0500, Payton Byrd wrote:
> Instead of dynamically allocating arrays for the selected entries on the
> heap, I set the arrays to memory locations at $A100 and $A500 and I simply
> fill these with '\0' to initialize them instead of using free() and
> calloc().

You can also add arbitrary blocks of free memory to the heap using the
_heapadd function. Once done, these blocks become part of the heap, and malloc
will use them to allocate memory on users request.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Aug 2 09:58:53 2010

This archive was generated by hypermail 2.1.8 : 2010-08-02 09:58:55 CEST