Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 2013 17:06:49 -0700
From:      Justin Hibbits <jrh29@alumni.cwru.edu>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        mdf@freebsd.org, FreeBSD Current <freebsd-current@freebsd.org>, Ian Lepore <ian@freebsd.org>, Ed Schouten <ed@80386.nl>
Subject:   Re: -ffunction-sections, -fdata-sections and -Wl,--gc-sections
Message-ID:  <CAHSQbTDkgWSTkzgH6=vz=OGigg9fFotoVkruwa0Fmh1_AebCUA@mail.gmail.com>
In-Reply-To: <CAJ-VmokpYwqR-V-iocBs_hYJwBfdcafA81r3uuOVwUwgVc2r0A@mail.gmail.com>
References:  <CAJOYFBBGY0GosPwG1B=1MKyapChEtX-O97r2zhXpGS8o7WO3gA@mail.gmail.com> <CAMBSHm_Qk13P=j1VOzuibYaeHFVF%2BCuXbTYL=q8ToDP6wL5X5w@mail.gmail.com> <CAJOYFBBUT5v1E6L0JkdrAXFmJmR0W2tmyNrC71k8mahLiF5vWg@mail.gmail.com> <CAJ-VmonnuskWb%2Bk7JtpgAfB6PV3FD6YCgreioJcfhBpCJm6naA@mail.gmail.com> <1379460140.1197.59.camel@revolution.hippie.lan> <CAJ-VmokpYwqR-V-iocBs_hYJwBfdcafA81r3uuOVwUwgVc2r0A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 17, 2013 4:31 PM, "Adrian Chadd" <adrian@freebsd.org> wrote:
>
> On 17 September 2013 16:22, Ian Lepore <ian@freebsd.org> wrote:
>
> > On Tue, 2013-09-17 at 14:56 -0700, Adrian Chadd wrote:
> > > ... I'd rather see if we can actually separate out things some more so
> > > these builds can shrink.
> > >
> > > Eg, if there's malloc related functions that aren't used, maybe we
should
> > > break malloc down into a directory full of functions.
> > >
> >
> > Why is that better than using this automated solution?
> >
>
> Not everyone is going to run clang on their target development platform?
:-)
>
> Personally I'd rather structure my work to behave better instead of doing
> something that relies on a specific tool/suite to be able to optimise.
>

Gcc also supports this. I used it when generating builds with newlib for
microcontrollers at a previous job.

-Justin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHSQbTDkgWSTkzgH6=vz=OGigg9fFotoVkruwa0Fmh1_AebCUA>