Re: [cc65] Best way to get aligned memory...

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-01-09 13:21:27


Hi!

On Thu, Jan 09, 2003 at 01:17:21PM +0100, Christian Krüger wrote:
> and use _only _'buffer1' anywhere else in my source,
> also buffer2 is reserved and linked? - regardless of
> the usage?

Yes. Linking is always done based on modules. The reason is that the linker
does not know if there are references to buffer2 inside the module. I had once
thought about a feature to split modules into independent submodules, so the
linker could discard unused submodules. But since this feature would bring
anything new, and is a lot of work, I decided against it.

So, if you want to have two buffers which are only linked in when actually
used, you will have create two modules.

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-01-09 13:21:35 CET