This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Regex instantiation
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Tim Shen <timshen91 at gmail dot com>
- Cc: Marc Glisse <marc dot glisse at inria dot fr>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 9 Jan 2014 18:31:37 +0100
- Subject: Re: Regex instantiation
- Authentication-results: sourceware.org; auth=none
- References: <CAPrifDnbuYcMBSwZChRz7cE6ZfhPT55YRxJ8nLDHadMKe=L-hA at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1401090740190 dot 3666 at laptop-mg dot saclay dot inria dot fr> <CAPrifDmUaJayAucrHigb1231v6qdn=_mbzPpqWUTMi=z2_me=A at mail dot gmail dot com> <52CE762E dot 7050800 at oracle dot com> <CAPrifDnWoeuKcA1OVYZojvLYQqdAwr_6kyeAMvMJrb9xjg2ujQ at mail dot gmail dot com> <5C457E11-9B62-44EA-9C1A-3144F9E62790 at oracle dot com> <CAPrifDmCmM=j+pxy5j=hNggY5XTsFrigddOTKuv-Pnb1Lob6aQ at mail dot gmail dot com>
Hi,
> On 09/gen/2014, at 18:22, Tim Shen <timshen91@gmail.com> wrote:
>
>> On Thu, Jan 9, 2014 at 12:09 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
>> Build two .so, with and without and subtract the sizes? But maybe I don't get your question.
>
> That's about my original question of this mail, that is, are there
> documented steps to export a symbol to .so?
I don't think libstdc++v3 is special about this, thus in the various .cc files there is nothing special, you can only find instantation files for templates, which end with -inst, normally, and definitions for everything else. Besides that, but this doesn't matter if you are interested in *sizes*, you also have to update the patterns in the linker script, to make sure that the new symbols are actually visible.
Paolo