Re: [cc65] To Atari platform coordinator

From: Christian Groessler <chris1groessler.org>
Date: 2005-07-16 23:00:07
On Thu, 14 Jul 2005, Ullrich von Bassewitz wrote:

>
> On Thu, Jul 14, 2005 at 08:49:34PM +0200, Christian Groessler wrote:
> > I cannot see how a linker config can solve this. The Atari startup code
> > adjusts the upper memory limit to the available memory found at runtime.
> > It in fact ignores the values from the linker script.
>
> I know that the Atari startup code ignores the linker config, but that's not a
> problem with the linker config but with the startup code:-) There's no real
> reason, why using a value from the linker config should not work.

Of course, in general, a linker config could handle this. I was not
talking in general, but Atari specific. :-)
I think the fact that the Atari doesn't use the value from the linker
config, but the memory size found at runtime, is not a bug, but a
feature(tm).
Using the memory found at runtime doesn't take more code than using the
values from the linker config. It reports the used memory to the system
though, this is additional code. If we don't play nice this is not needed.

> > It would also need different startup code, but then I would simply add
> > this _graphmode_used calculation to the startup code and keep the old
> > linker config.
>
> Things like this are the reason why even small Atari programs have a big
> memory footprint. If you decide all these things at runtime, there is no way
> to exclude unwanted code. The only way to change that is to make the decisions
> at compile or link time.

That was the reason that I asked how to force the inclusion of the
_graphics() constructor function. I don't want to add it to the default
runtime.
Also in this case I'd like to only include the constructor of the
_graphics function, but not the _graphics function itself :-/
Sounds weird. But making it a subroutine and putting it into another
file will again cost 3 bytes more for a jmp.

> Yes, that would need changes in the startup code and
> maybe a few other files. So what?

So what?
Nothing. I'm not opposed to changes to the startup code, I just try to
do the "right" changes :-)

regards,
chris


----------------------------------------------------------------------
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 Jul 16 23:00:45 2005

This archive was generated by hypermail 2.1.8 : 2005-07-16 23:00:48 CEST