Path: csiph.com!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Bill Chatfield Newsgroups: comp.sys.apple2.programmer Subject: Re: malloc with cc65 Date: Thu, 14 Dec 2023 21:59:55 -0500 Organization: A noiseless patient Spider Lines: 17 Message-ID: <20231214215955.353cd4e4@smilodon-gracilis> References: <20231214135300.3f65fe0f@smilodon-gracilis> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: dont-email.me; posting-host="1dc7371e60ee875ccda498369f269634"; logging-data="32273"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19YPX6+Tzzo34xjYUBN7MWj90YIbUB0chc=" Cancel-Lock: sha1:835RtuHO7Jj1rjL3NpjPmw9dTDw= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) Xref: csiph.com comp.sys.apple2.programmer:6282 On Thu, 14 Dec 2023 22:34:07 -0000 (UTC) Oliver Schmidt wrote: > 1. cc65 comes with a fully functional heap manager incl. heap > defragmentation. That is fantastic! > 2. The cc65 optimizer (always compile with -O) knows about "pointer > constants" (in contrast to pointer variables) so the code to access > them is usually faster/smaller. I'm not sure where a pointer constant would be used in a C program. Would this be an address defined with #define or something like: const char *KBD ?