Re: [cc65] Config file expressions

From: Ullrich von Bassewitz <>
Date: 2005-07-29 23:32:00
On Fri, Jul 29, 2005 at 11:20:54PM +0200, Christian Groessler wrote:
> I've added the use of this feature to the Atari linker config. I didn't
> change it to use __RESERVED_MEMORY__ instead of _graphmem_used yet. Will
> do this probably next week.

Christian told me about an error in the code. The problem was caused by
me not realizing that that object files and libraries are read before
the config file. This fact means that - contrary to what I've written in
my last mail - all symbols in these object files are available in
expressions in the linker config - provided they evaluate to constants
*before* segment and memory are placement is done. Using "weak = yes"
will drop the definition of the symbol in the linker config, if any
object file selected for inclusion into the final executable does
already contain the named symbol.

I'm not sure if this feature is really useful, and it would be possible
to remove it (by explicitly ignoring symbols from object files). Maybe
someone comes up with a clever way to use it as an advantage.

> Now off for 3 days...

Have a nice weekend:-)



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Jul 29 23:32:14 2005

This archive was generated by hypermail 2.1.8 : 2005-07-29 23:32:16 CEST