Pelles C forum

Pelles C => Feature requests => Topic started by: TimoVJL on September 03, 2011, 09:31:53 AM

Title: Compiler option like msvc -Gy
Post by: TimoVJL on September 03, 2011, 09:31:53 AM
Can PellesC have similar option ?
Quote
The /Gy switch is also very useful. It generates a separate COMDAT for each function, giving the linker more flexibility when it comes to removing unreferenced COMDATs and COMDAT folding. The only downside to using /Gy is that it can have a minor effect on build time. Therefore, it is generally recommended to use it. For more information, see /Gy (Enable Function-Level Linking).
Title: Re: Compiler option like msvc -Gy
Post by: CommonTater on September 03, 2011, 03:06:34 PM
Hi Timo... 
I too would like to see smart linking (of the real kind).

The easy way around this, for now, is to create separate source files for each function.  They get turned into objects, objects are linked separately... thus smart linking (of a sort).  (See my various libraries here for an example)