Re: [cc65] Specifying segment for library code?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-06-03 19:20:06
Hi!

On Sun, Jun 03, 2012 at 04:48:00PM +0200, Oliver Schmidt wrote:
> I've quite some experience with a setup like this from Contiki 1.x and
> from that perspective I certainly would _not_ suggest anyone to go for
> it. As Greg already mentioned contructors/destructors for library code
> linked into the overlay aren't run

That is correct, but most standard functions don't have constructors. Most
user programs aren't comparable to Contiki, which aims to be an operating
system and therefore has another set of library functions in use.

> Certainly not. The only module with CODE/DATA/RODATA segments is the
> main module. Therefore it is guaranteed that all library code is
> always available to everybody.

Yes, and exactly this is where this solution differs from the approach
described by me: If an overlay (and only this overlay) needs strncmp, strncmp
will get linked to the main program, not to the overlay.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Jun 3 19:20:21 2012

This archive was generated by hypermail 2.1.8 : 2012-06-03 19:20:24 CEST