Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2009-04

virtual methods and smart-linking?

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Friebe

Just a question. Can smart linking detect and remove unused virtual methods?

I did a few tests and it seems it does not remove them. If I understand it correctly, then this could be because virtual methods are nver directly linked (they go via the VMT) so the linker would not know?

Best Regards
Martin

Reply by email

Jonas Maebe
to martin: Thanks for the quick reply. I am trying to find that (windows) switch for the linker…
martin wrote 12 lines
Jonas Maebe wrote: > > On 09 Apr 2009, at 14:35, Martin Friebe wrote: > >> Just a question. Can smart linking detect and remove unused >> virtual methods? > > http://lists.freepascal.org/lists/fpc-pascal/2009-April/020638.html Thanks for the quick reply. I am trying to find that (windows) switch for the linker (http://www.freepascal.org/docs-html/user/usersu15.html#x38-450005.1.4 ) but I have no luck in identifying it...

It's a conditional define you have to use while compiling the compiler: http://lists.freepascal.org/lists/fpc-pascal/2009-April/020641.html

Jonas

Reply by email