[cc65] Testing cc65

From: Dan <opendtv1yahoo.com>
Date: 2007-07-06 16:26:27
Does anyone have some ideas on how to test cc65?
Ullrich, do you have a way of doing automated tests?

If somebody is willing to try out my version of cc65,
let me know and I'll send you the source and/or Win32
binary. Here's a summary of enhancements:

* Static parameter passing (enabled with
--static-params): uses fixed memory locations for
parameter passing. Only applied to functions declared
'static' that don't have their address taken. The
externally-visible calling convention is unchanged.

* Leaf function optimization (enabled with --leaf):
leaf functions (i.e. functions that don't call other
functions) use a special block of zero page memory
(leafregbank). By default it is 16 bytes, but this can
be changed with --leaf-space. If --leaf is combined
with --static-params, leaf function parameters are
passed directly in zero page. All locals in leaf
functions use zero page (space permitting); the
"register" keyword has no effect.

* Using the hardware stack for zero page save/restore
(enabled by --hardware-stack): uses PHA for saving
locals declared as "register". This is much faster
than using the C stack, and often (but not always)
more compact. Since the default maximum is only 6
bytes per function, there is not much risk of stack
overflow, but it could happen.

* Automatically use "fastcall" (enabled by
--fastcall): automatically applies fastcall calling
convention to static functions. This just saves having
to type "fastcall" in function declarations. Despite
its name, fastcall is not really faster, but it is
more compact for functions called more than once.

* Optimizes zero page global pointers (marked with
#pragma zpsym): pointers in zero page are now used
directly, instead of being treated as if they weren't
in zero page.

* String merge (enabled by --string-merge): merges
duplicate string literals.

Dan



       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 
----------------------------------------------------------------------
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 Jul 6 16:26:37 2007

This archive was generated by hypermail 2.1.8 : 2007-07-06 16:26:41 CEST