From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] common: Link with GCC instead of LD
Date: Wed, 31 Oct 2012 15:48:25 -0700 [thread overview]
Message-ID: <20121031224825.GA24095@bill-the-cat> (raw)
In-Reply-To: <20121031223618.E2C15200630@gemini.denx.de>
On Wed, Oct 31, 2012 at 11:36:18PM +0100, Wolfgang Denk wrote:
> Dear Marek Vasut,
>
> In message <1351701168-7293-1-git-send-email-marex@denx.de> you wrote:
> > Flip over from linking with LD to linking with GCC. This has some
> > long-term benefits, like easy path to enabling LTO.
>
> Could you please explain these supposed benefits in a bit more detail?
> Please excuse my ignorance, but so far I see just added complexity,
> but I don't see what it buys us.
Complexity is arguable. Most projects don't call ld directly but let
gcc call ld. Doing this brings us in line with what other projects do.
As an aside, from my time with CodeSourcery folks directly calling ld
was discouraged I swear, but I don't have some reference to back that
up. Finally, as Marek said but didn't explain, this brings us a step
closer to being able to enable LTO (link time optimization) which may
(but we need to experiment) be beneficial in terms of size and
performance (since in short gcc re-decides things like positioning,
inlining based on the whole program state at link time).
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121031/a4863bc0/attachment.pgp>
next prev parent reply other threads:[~2012-10-31 22:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-31 16:32 [U-Boot] [PATCH] common: Link with GCC instead of LD Marek Vasut
2012-10-31 19:51 ` Andreas Bießmann
2012-10-31 20:52 ` Marek Vasut
2012-10-31 22:36 ` Wolfgang Denk
2012-10-31 22:48 ` Tom Rini [this message]
2012-10-31 23:28 ` Wolfgang Denk
2012-10-31 23:39 ` Tom Rini
2012-10-31 22:51 ` Marek Vasut
2012-10-31 23:32 ` Wolfgang Denk
2012-10-31 23:45 ` Marek Vasut
2012-11-01 0:00 ` Wolfgang Denk
2012-11-01 0:06 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121031224825.GA24095@bill-the-cat \
--to=trini@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox