Re: [cc65] A Few Good Optimizations

From: Oliver Schmidt <ol.sc1web.de>
Date: 2010-11-12 23:42:32
Hi,

adding to what Groepaz already wrote...

> *    Declaring an auto variable as static can save code.

This is the only one somewhat specific to cc65 - as other platforms
using their hardware stack for automatic variables tend to be
especially fast in accessing them. It is already documented in
http://www.cc65.org/doc/cc65-2.html#ss2.2 :

--static-locals
Use static storage for local variables instead of storage on the
stack. Since the stack is emulated in software, this gives shorter and
usually faster code, [...]

Regards,
Oliver
----------------------------------------------------------------------
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 Nov 12 23:45:52 2010

This archive was generated by hypermail 2.1.8 : 2010-11-12 23:45:55 CET