From: Matt Ackeret (mattack_at_area.com)
Date: 2002-05-22 00:00:30
On Tue, 21 May 2002, Ullrich von Bassewitz wrote: >On Tue, May 21, 2002 at 04:49:19PM +0200, Christian Krüger wrote: >> In my opinion the option is like 'register' ore 'inline' just a >> recommendation >> for the compiler to do things in users mind... > >Yeah, but the compiler does not know how much zero page space is available - >this is only known to the linker. And the linker on the other side is not able >to change zero page addresses back to absolute ones. Uhh, here's a dumb question. Would there be any way to create a zero page pointer? I mean, you guys basically want the optimizer to deal with 0x00-0xFF specially, right? So isn't there any way you could have a keyword and you could assign it yourself at the same time? zeropage char* blah=0xF0; So then the pointer is const, but you could still do normal C stuff like *blah = 'X'; and such, but when reading/writing, the compiler knows it can do the fast instructions. This seems to me that it makes the programmer deal with allocating them (which makes sense), but also makes you able to deal with them from C. ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2002-05-22 00:01:10 CEST