Due to server problems the website is temporarily offline! Visit http://www.smorgasbordet.com/pellesc/ to download Pelles C.
This is not the full truth. Both MS link and Polink know how to handle COMDAT sections ( COMDATs are described in the MS COFF docs ). Actually, the MSVC "function level linking" feature ( and also the "string pooling" thing ) are implemented by making use of such sections. In short: with COMDATs, it's possible that the linker uses certain sections of a module only - the rest won't become part of the final binary.
Would you please make a little example project using COMDAT sections?
Quote from: czerny on March 12, 2013, 08:09:22 AMWould you please make a little example project using COMDAT sections?A "project" is attached. It's for the command line only ( MAKE.BAT ) - it will need PATHs adjustments before running!It needs PellesC and MS VC ( I used the free VC++ 2003 Toolkit ).MS VC is used to create an object module/library that contains COMDATs.Polink is used to create the final binary, IOW: it knows how to handle objects containing COMDATs and extracts the one function that is needed [ func2() ] from the ONE object module in the library.
Hi timovjl,This is why probably Japheth used the VC++ 2003 toolkit.