I've spent most of the past week experimenting with different libraries for an upcoming project. It seems like most projects that come with visual c build files enable link time code generation by default. To keep the resulting libraries consistent with my wxWidgets libraries, I've been turning it off each time.
But I'm wondering if I should go the other way and instead rebuild the wxWidgets libraries with it. This is an option I'm not really familiar with. Does it provide any real, noticeable optimization? Or should I just keep turning it off with other libraries?
Visual C and Link-time Code Generation
-
- Super wx Problem Solver
- Posts: 469
- Joined: Tue Jun 20, 2006 6:47 pm
- Contact:
- tierra
- Site Admin
- Posts: 1355
- Joined: Sun Aug 29, 2004 7:14 pm
- Location: Salt Lake City, Utah, USA
- Contact:
Re: Visual C and Link-time Code Generation
As far as I understand it, if you're building and linking wxWidgets as a dynamic DLL library, it's likely not going to make a difference. It might if you're linking statically to wxWidgets, but really, don't bother unless you're you really are able to find a significant boost in performance. It is known for reducing executable size a good amount, but that's hardly a concern these days. It's also known for causing a *lot* of headaches with obscure issues involving incorrectly linked libraries with incompatible configurations, and many people prefer to just avoid it altogether for that reason. I believe this is the same reason that wxWidgets ships with this setting turned off by default.
-
- Super wx Problem Solver
- Posts: 469
- Joined: Tue Jun 20, 2006 6:47 pm
- Contact:
Re: Visual C and Link-time Code Generation
Thanks. That's what I wanted to know.