[LLVMdev] LLD improvement plan

Joerg Sonnenberger joerg at britannica.bec.de
Thu May 7 09:13:59 PDT 2015


On Thu, May 07, 2015 at 10:36:45AM -0500, Shankar Easwaran wrote:
> The atom model is optimized when you compile the code with
> -ffunction-sections and -fdata-sections.

...both come with their own price and they don't always generate smaller
code.

> Once targets start having -fno-unique-section-names as the default
> the atom model looks more promising.

I don't see how that is related at all.

> In fact it simplifies the linker to not have extra
> data structures IMO.

I'm still waiting for actual examples beyond the trivial difference for
the backreference from fragments to symbols. You meanted mergeable
string sections in IRC, but that seems actually like a good example
*against* the atomic model. Having one atomic per string is quite
expensive compared just a section+offset reference with a post-merging
update pass.

Joerg



More information about the llvm-dev mailing list