Groups | Search | Server Info | Login | Register
Groups > comp.sys.apple2.programmer > #6283
| From | Oliver Schmidt <ol.sc@web.de> |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: malloc with cc65 |
| Date | 2023-12-16 00:43 +0000 |
| Message-ID | <ulirs5$4fr4$1@solani.org> (permalink) |
| References | <20231214135300.3f65fe0f@smilodon-gracilis> <ulfvsv$2pb5c$1@solani.org> <20231214215955.353cd4e4@smilodon-gracilis> |
Hi Bill, >> 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. I meant the term in this sense... An integer variable: int a An integer constant: 5 Setting the variable to the constant: a = 5 A pointer variable: int *b A pointer constant: int c[10] Setting the variable to the constant: b = c What I state above means that using c is faster/smaller than using b like this: *c = 2 *b = 2 Regards, Oliver
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
malloc with cc65 Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-14 13:53 -0500
Re: malloc with cc65 Oliver Schmidt <ol.sc@web.de> - 2023-12-14 22:34 +0000
Re: malloc with cc65 Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-14 21:59 -0500
Re: malloc with cc65 Oliver Schmidt <ol.sc@web.de> - 2023-12-16 00:43 +0000
Re: malloc with cc65 Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-18 00:58 -0500
Re: malloc with cc65 Oliver Schmidt <ol.sc@web.de> - 2023-12-18 19:51 +0000
Re: malloc with cc65 Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-20 10:52 -0500
Re: malloc with cc65 Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> - 2023-12-27 10:00 +1100
Re: malloc with cc65 Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-31 11:58 -0500
Re: malloc with cc65 Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> - 2024-01-03 19:05 +1100
Re: malloc with cc65 Colin Leroy-Mira <colin@colino.net> - 2024-02-01 21:54 +0100
csiph-web