Re: [cc65] Extra Zero-page Segments

From: Shawn Jefferson <sjefferson1shaw.ca>
Date: 2010-02-19 20:22:43
----- Original Message -----
From: Karri Kaksonen <karri@sipo.fi>
Date: Friday, February 19, 2010 5:05 am

> The use of zeropage is really completely irrelevant to C-
> programming. If 
> you have enough knowledge to optimize bus cycles we can expect 
> you to be 
> able to use the .cfg files.
> 
> At least in Lynx programming it is essential to understand 
> segments in 
> order to put a cart together. But using zeropage is not 
> necessary at 
> all. It is just a way to speed up some minor part of the code. 
> Now when 
> I look back at my programming for the last years I have not used 
> zeropage to anything at all.
> 
> So my view is that the average C programmer does not care if it 
> is 
> .zeropage or .segment "EXTZP" as he will not use it. And cc65 is 
> a 
> C-compiler. Right?

I agree that if a programmer is looking for optimization, that they can probably go figure out what the segment names are.  CC65 already provides the register keyword that does some of this for you.

Strategically putting some variables in zeropage can make quite an improvement in both speed and code size over a large project though...  I would suggest to do it as an optimization step.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Feb 19 20:22:52 2010

This archive was generated by hypermail 2.1.8 : 2010-02-19 20:22:56 CET