Tom Watt wrote: > What does the heap include? > > When I tried printf'ing _heapmemavail() I got -19262. 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? Have a look at <http://www.cc65.org/doc/c64-3.html>. Since the basic interpreter ROM is disabled you gain an additional 12KiB of RAM compared to whats available for a basic program. Of course the C startup and your printf() function will use some of that, so your measured ~10KiB seem resonable. -- ---> Dirk Jagdmann ----> http://cubic.org/~doj -----> http://llg.cubic.org ---------------------------------------------------------------------- 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 03:59:25 2009
This archive was generated by hypermail 2.1.8 : 2009-12-29 03:59:27 CET