Results 1 to 2 of 2

Thread: What the point of using -GL

  1. #1
    Join Date
    Apr 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default What the point of using -GL

    Hi folks,

    I wonder what the benefit of using -GL compiler option when compiling Qt on Windows? It's clear to me that using -GL leads to significantly slowdown linking ( especially with statically linked Qt. ). So what the point of using -GL?
    Last edited by pyfqrf; 18th May 2009 at 13:30.

  2. #2
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: What the point of using -GL

    Much to read: http://msdn.microsoft.com/en-us/magazine/cc301698.aspx
    To be honest, I have not read the whole article. My brain still is too destroyed from the weekend . This is too much English text for me.

    As far as I have understood the text, when using /GL the compiler doesn't generate target specific code. It generates some sort of IL (intermediate language).
    The linker will take this IL code, does some magic and generates target specific code itself.
    But it still is not clear to me under what circumstances this is better compared to when the compiler generates target specific code directly .

    [edit]
    By the way: This was my 100th post. I'll have a last bottle of beer to celebrate this .

    [edit2]
    Sorry. My fault.
    /GL ist not the "Link-time Code Generation". It is just one step to enable it.
    /GL is explained here: http://msdn.microsoft.com/en-us/library/0zza0de8.aspx
    Last edited by Boron; 18th May 2009 at 18:21.

Similar Threads

  1. display a plot point by point
    By oswalidos in forum Newbie
    Replies: 32
    Last Post: 13th March 2009, 15:37
  2. draw point with mouseevent
    By konvex in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2008, 04:49
  3. how to paint scene point by point
    By elessaar in forum Qt Programming
    Replies: 8
    Last Post: 4th September 2008, 20:00
  4. Check a point inside or outside a road?
    By kstking in forum Qt Programming
    Replies: 1
    Last Post: 15th October 2007, 18:48
  5. Moving the (0.0) point on the scene
    By maverick_pol in forum Qt Programming
    Replies: 1
    Last Post: 6th September 2007, 15:34

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
  •  
Qt is a trademark of The Qt Company.