RE: Re[2]: [cc65] Graphics library

Date view Thread view Subject view

From: David M. Lloyd (dmlloyd_at_atari-central.com)
Date: 2001-08-15 18:12:35


On Wed, 15 Aug 2001, Keates, Mark wrote:

> Hi Mike,
>
> > IMO, "library" implies just that, that many things are collected into
> > one place, nothing about how it is implemented.
> >
> > Do you think that "fgets()" has the same implementation on Sun/Solaris
> > (which I use at work) and on the 6502?
>
> I guess I was thinking of this too closely to CC65. For us, fgets() is
> part of a common library which could (in theory) be built into its own
> library and linked with the target machines library. However, as it
> currently stands each target has its own lib.
>
> For a 'portable' library to work it would need to contain each
> target's implementation. A clever linker might be able to remove the
> redundant (non-target) routines as somewhere in the code a decision
> must be made as to which function to call. E.g:
<snip>

Why not use the same approach as the standard cc65 library, where the
underlying code depends on the platform for which you're building?

Having a switch that always has the same answer is a waste, IMHO.  I
wouldn't want a bunch of C64 code sitting on my Atari taking up my
precious 48K of program memory.  I mean, how often are we going to need
binary compatibility between 8-bits?

- D

<david_at_atari-central.com>
http://www.atari-central.com

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de 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 : 2001-12-14 22:05:41 CET