On Mon, Dec 28, 2009 at 07:10:57PM -0700, Tom Watt wrote: > What does the heap include? On most platforms, the space between the BSS segment and the stack. > When I tried printf'ing _heapmemavail() I got -19262. You must have made an error. _heapmemavail() returns a size_t which is an unsigned data type. So the result of the function can never be negative. > I then added > 65536 and got 46274. When I did the BASIC command PRINT FRE(0) + > 65536 afterward I got 36131. Does this mean I had ~10k more RAM > available when the cc65 program was running? If so, why? On the C64, the standard setup for a program is to run with the BASIC ROM disabled, so you have 8K more memory available than under BASIC. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Tue Dec 29 15:32:19 2009
This archive was generated by hypermail 2.1.8 : 2009-12-29 15:32:23 CET