Re: [cc65] Memory allocation question

From: Groepaz <>
Date: 2009-08-17 11:03:16
On Montag 17 August 2009, Scott Hutter wrote:
> I think I already know the answer to this one, but will ask to be sure.
> Upon a program termination, all malloc()'ed memory is free()'ed back to the
> system?  Im writing for the Commodore 128, and my assumption of course, is
> that when a program terminates, the system (memory pointers and such) are
> all back to a normal power-on state.  To that regard, is there anything
> that would not be back in "power-on" state upon program termination due
> soley to the compiler? (ie modified zero page values, etc,)

zeropage will be restored when the program exits. (however, since the c128 
doesnt know about "memory allocation", there is nothing that would have to be 
restored either =))


Gleich ab nach Guantanamera und einsperren diese Erbrecher. Die bedrohen die 
freie Marktwissenschaft. Sollen lieber selber mal was erwickeln.

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Aug 17 11:03:11 2009

This archive was generated by hypermail 2.1.8 : 2009-08-17 11:03:13 CEST