Re: -ffunction-sections -Wl,--gc-sections trick and class members

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: class-member-function-sections.tar.gz
Description: application/gzip


[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux