Re: [cc65] Library in ROM

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2007-11-22 22:42:49
Hi!

On Tue, Nov 20, 2007 at 03:05:06PM -0600, Payton Byrd wrote:
> I'm thinking about making a 16k ROM for the 128 that includes a library of
> commonly used CC65 functions.  This would provide a fixed location for the
> most common functions.  Would it be possible to create a custom link config
> that would use this location for functions instead of bundling them at the end
> of the user program?

I haven't tried it, but since the linker config may contain symbols, it should
be possible to create a linker config with the addresses of all external
symbols in the linker config.

> The ROM could copy the library to RAM in BANK 0 on
> bootup so that programs wouldn't have to deal with bank switching to see the
> ROM.

I'm not sure if this is really an advantage. Each program compiled with cc65
contains just the library routines it needs. If you pack all of them into a
ROM and copy this ROM into RAM before execution, less RAM is available for the
application. And, since the ROM will probably contain library subroutines not
used by the application, even less RAM is avaible than without the library
ROM.

>  We could put things like device drivers in there too, which could make
> it a lot easier to distribute programs since the correct driver for the 128
> would always be available.

It is probably easier to copy a specific device driver to the disk or d64
image that contains the program instead of requiring people to burn special
ROMs, open their C128 and install it, before an application can be used.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Nov 22 22:43:08 2007

This archive was generated by hypermail 2.1.8 : 2007-11-22 22:43:11 CET