Re: [cc65] How smart is the linker?

From: Groepaz <groepaz1gmx.net>
Date: 2009-12-16 18:45:44
On Mittwoch 16 Dezember 2009, Ullrich von Bassewitz wrote:
> On Wed, Dec 16, 2009 at 04:55:51PM +0100, Jakub wrote:
> > How smart is the linker when it tries to align segments?
>
> Actually not very smart. I have an idea that removes the need for an
> alignment of the segments in the linker config (at least for binary
> output), but it needs to be implemented.
>
> > Can anyone describe the algorithm?
>
> Easy: Sections are stored in the order in which they're found. If alignment
> is necessary it is added when a section is encountered. Adding more
> intelligence in this area is rather difficult, I think.

what i personally would love to see is a linker that can arrange functions in 
segments which have "memory holes" in them ... but certainly less than 
trivial to implement =)

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

A 'hacker' is any person who derives joy from discovering ways to circumvent 
limitations. 
<Robert Bickford>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Dec 16 18:44:30 2009

This archive was generated by hypermail 2.1.8 : 2009-12-16 18:44:32 CET