linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shriramana Sharma <samjnaa@gmail.com>
To: linux-c-programming@vger.kernel.org
Subject: Re: -ffunction-sections -Wl,--gc-sections trick and class members
Date: Thu, 26 Apr 2007 23:00:47 +0530	[thread overview]
Message-ID: <4630E1C7.40804@gmail.com> (raw)
In-Reply-To: <17959.34609.888091.432080@cerise.gclements.plus.com>

[-- Attachment #1: Type: text/plain, Size: 594 bytes --]

Glynn Clements wrote:
> OTOH, I suspect that virtual methods are always "used" when
> intialising the virtual method table, so it's less likely that they
> could be omitted.
> 
> If you want a definite answer, test it.

Well I tested it and it is obvious that the trick is able to weed out 
unused class members too -- run the contents of the attachment.

But I did not comprehend how you suspect that having virtual function (I 
presume methods are the same as functions) will create different 
results. Can you make an example based on the example I attach here?

Thanks.

Shriramana Sharma.

[-- Attachment #2: class-member-function-sections.tar.gz --]
[-- Type: application/gzip, Size: 530 bytes --]

  reply	other threads:[~2007-04-26 17:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-19 14:38 -ffunction-sections -Wl,--gc-sections trick and class members Shriramana Sharma
2007-04-19 15:13 ` Glynn Clements
2007-04-26 17:30   ` Shriramana Sharma [this message]
2007-05-04 13:31     ` Glynn Clements

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=4630E1C7.40804@gmail.com \
    --to=samjnaa@gmail.com \
    --cc=linux-c-programming@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).