Re: [cc65] The Contiki Desktop OS for cc65

Date view Thread view Subject view

From: Ullrich von Bassewitz (
Date: 2003-03-14 19:05:06

On Fri, Mar 14, 2003 at 09:27:25AM -0800, Shawn Jefferson wrote:
> I think banking is going to be the best way to do it on the Atari... if that would work!

Here's another suggestion, nothing spectacular, but it can improve the
situation a bit: Playing with the sources I found out that adding a
__fastcall__ to the declaration of show_statustext() in www.c will save almost
50 bytes. Of course, the savings depend on how many times the function is
called, but with just one call, it comes out even. So I would suggest adding a
__fastcall__ to at least all of the CTK functions. This can be wrapped in a
macro, so it's compatible with other compilers:

        #if defined(__CC65__)
        #  define ctk_decl      __fastcall__
        #  define ctk_decl

I would say that between 500 and 1000 bytes could be saved by making
"fastcall" the standard calling convention - not really much, but also nothing
to sniff at.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.

Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-03-14 19:05:23 CET