Re: [cc65] linker cfg files

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-04-24 18:17:31


On Thu, Apr 24, 2003 at 07:35:26AM -0400, Greg King wrote:
> You just need to expand that idea, when you design the libraries for
> machines that have separated blocks of memory.  Give the stack and the
> heap their own "STACK:" and "HEAP:" memory-area definitions.  

This is the part that doesn't work and why I talked about having expression
evaluation in the linker scripts: You cannot use a separate memory area for
the heap, because this memory area must start where the program ends - and it
is currently not possible to use an expression for the start address of a
memory area.

> (I still prefer my more
> efficient proposal:
> * one common source-file, for most targets;
> * "special" targets would replace it with their custom versions when their
> libraries were built.)

This is possible and already used for some targets. But I still think it
should be difficult to use target specific modules, so people try to avoid it.
Many people have a tendency to use machine specific code even where it is
completely unnecessary, so someone has to work against this trend:-)

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
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 : 2003-04-24 18:20:28 CEST