Results 1 to 2 of 2

Thread: ClanLib whole program optimization for Win32

  1. #1
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default ClanLib whole program optimization for Win32

    Ref http://msdn.microsoft.com/en-us/library/0zza0de8.aspx

    Currently ClanLib does not set this option by default.

    The format of files produced with /GL in the current version may not be readable by subsequent versions of Visual C++. You should not ship a .lib file comprised of .obj files that were produced with /GL unless you are willing to ship copies of the .lib file for all versions of Visual C++ you expect your users to use, now and in the future.
    Note, currently some dependency libraries have this switch enabled.

    Any thoughts? Are the advantages significant? Or should all dependancies have this switched off.

    (I have noticed, that the optimisations settings in the dependancies are generally different to ClanLib's)

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    554

    Default

    Whole program optimization does improve the program a lot in some cases because it allows it to inline functions between different .obj files and so on.

    The catch is that the format is only compatible within the same service pack, so we have to recompile the dependency libraries for each service pack. Back then I didn't really bother to do that so I just disabled it. Supposedly for libjpeg that had a big impact on performance.

Similar Threads

  1. G++ optimization flags
    By spin in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 01-07-2011, 09:59 AM
  2. [PATCH] Win32 animated cursor
    By huntercool in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 06-18-2010, 10:53 AM
  3. heads up on libjpeg optimization
    By konichiwa in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 11-02-2009, 01:01 AM
  4. GL1 framebuffer optimization
    By huntercool in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 10-05-2009, 07:27 AM
  5. WIN32 ClanLib 0.9 Message Queue has_messages()
    By rombust in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 09-15-2008, 06:01 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •