[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Packaging debug symbol files on Windows
From:       J Decker <d3ck0r () gmail ! com>
Date:       2015-07-27 23:57:15
Message-ID: CAA2GJqVzAXOzsxUvGJfHs-wq73j+zeCFzQQKprdB869CiLhtSw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Debug also adds padding between functions and stack checking which can
significantly add to code size for smaller libraries...  or libraries with
lots of tiny functions.

On Mon, Jul 27, 2015 at 9:13 AM, Andreas Pakulat <apaku@gmx.de> wrote:

> Hi Nils,
>
> On Mon, Jul 27, 2015 at 3:58 PM, Nils Gladitz <nilsgladitz@gmail.com>
> wrote:
>
>> On 07/27/2015 03:46 PM, Andreas Pakulat wrote:
>>
>>> I've meanwhile also noticed that the default compiler flags that CMake
>>> uses include the debug information in the dll itself (dll size is
>>> doubled), so for now don't even have to have the separate pdb files
>>> packaged anymore (in this case the pdb info is small enough to just keep
>>> in the dll).
>>>
>>
>> I am not entirely sure what you mean but CMake's default flags for the
>> Visual Studio compiler when building "Debug" or "RelWithDebInfo" use /Zi
>> (debug information in external pdb) rather than /Z7 (embedded debug
>> information; no pdb is generated).
>>
>> Maybe your project replaces the default flags?
>
>
> No Z7 or Zi anywhere in the CMake files and the generated makefiles
> include /Zi. So I don't know why the dll's would be bigger and generate
> proper backtrace information when analyzing a dump file but so it is and
> thats fine with me for now.
>
> Andreas
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>

[Attachment #5 (text/html)]

<div dir="ltr">Debug also adds padding between functions and stack checking which can \
significantly add to code size for smaller libraries...   or libraries with lots of \
tiny functions.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, \
Jul 27, 2015 at 9:13 AM, Andreas Pakulat <span dir="ltr">&lt;<a \
href="mailto:apaku@gmx.de" target="_blank">apaku@gmx.de</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr">Hi Nils,<div class="gmail_extra"><br><div \
class="gmail_quote"><span class="">On Mon, Jul 27, 2015 at 3:58 PM, Nils Gladitz \
<span dir="ltr">&lt;<a href="mailto:nilsgladitz@gmail.com" \
target="_blank">nilsgladitz@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span>On 07/27/2015 03:46 PM, Andreas Pakulat wrote:<br> \
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> I&#39;ve meanwhile also noticed that the default compiler \
flags that CMake<br> uses include the debug information in the dll itself (dll size \
is<br> doubled), so for now don&#39;t even have to have the separate pdb files<br>
packaged anymore (in this case the pdb info is small enough to just keep<br>
in the dll).<br>
</blockquote>
<br></span>
I am not entirely sure what you mean but CMake&#39;s default flags for the Visual \
Studio compiler when building &quot;Debug&quot; or &quot;RelWithDebInfo&quot; use /Zi \
(debug information in external pdb) rather than /Z7 (embedded debug information; no \
pdb is generated).<br> <br>
Maybe your project replaces the default \
flags?</blockquote><div><br></div></span><div>No Z7 or Zi anywhere in the CMake files \
and the generated makefiles include /Zi. So I don&#39;t know why the dll&#39;s would \
be bigger and generate proper backtrace information when analyzing a dump file but so \
it is and thats fine with me for now.</div><span class="HOEnZb"><font \
color="#888888"><div><br></div><div>Andreas</div></font></span></div></div></div> \
<br>--<br> <br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" \
target="_blank">www.kitware.com</a><br> <br>
Please keep messages on-topic and check the CMake FAQ at: <a \
href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" \
target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br> <br>
Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:<br> <br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" \
target="_blank">http://cmake.org/cmake/help/support.html</a><br> CMake Consulting: <a \
href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" \
target="_blank">http://cmake.org/cmake/help/consulting.html</a><br> CMake Training \
Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" \
target="_blank">http://cmake.org/cmake/help/training.html</a><br> <br>
Visit other Kitware open-source projects at <a \
href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" \
target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br></blockquote></div><br></div>




-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic