[cc65] More size reductions to atari libs

From: Daniel Serpell <daniel.serpell1gmail.com>
Date: 2009-12-05 17:59:41
Hi!

This set of patches reduce the size of atari executables (the same
tests always) from:

Original: [svn r4499]
 -rw-r--r-- 1 daniel daniel 284 2009-12-05 10:25 empty-atari
 -rw-r--r-- 1 daniel daniel 2225 2009-12-05 10:25 fileio-atari
 -rw-r--r-- 1 daniel daniel 2716 2009-12-05 10:25 printf-atari
 -rw-r--r-- 1 daniel daniel 786 2009-12-05 10:25 put-atari

To:
 -rw-r--r-- 1 daniel daniel 284 2009-12-05 13:34 empty-atari
 -rw-r--r-- 1 daniel daniel 1881 2009-12-05 13:34 fileio-atari
 -rw-r--r-- 1 daniel daniel 2648 2009-12-05 13:34 printf-atari
 -rw-r--r-- 1 daniel daniel 718 2009-12-05 13:34 put-atari

So, now the atari target has the smallest library footprints.

The patches:
 p1: Move fd tables to it's own file, and write them already initialized.
 p2: Don't use _strupr to uppercase filename, use shorter inlined loop.
 p3: Merge uppercasing with copy filename to stack.
 p4: Copy default device name with a loop.
 p5: Always allocate 128 bytes for the filename on the stack, idea by Uz.
 p6: No need to init DEFAULT_DEVICE, as it's already initialized.

I have a mercurial repository of CC65 at
http://bitbucket.org/dserpell/cc65-trunk/
and a repository with my patches at http://bitbucket.org/dserpell/cc65-ds/

    Daniel.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Dec 5 17:59:49 2009

This archive was generated by hypermail 2.1.8 : 2009-12-05 17:59:52 CET