Eric<br>Extract from the clang++ compile without debug info. See the warnings which follows also.<br>Is there a better way to improve on this.<br><br>/home/deleisha/CodeSpace/build/Release/bin/clang++ -c -o /home/deleisha/CodeSpace/pegasus/pkg/obj/Pegasus/DynListener/Service/cimlistener.o -W -Wall -Wno-unused -Wno-unused-parameter -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT -s -O2 -m64 -fvisibility=hidden -fPIE -fno-enforce-eh-specs -DPEGASUS_INTERNALONLY -DPEGASUS_CONSUMER_INTERNAL  -DPEGASUS_PLATFORM_LINUX_GENERIC_GNU -DPEGASUS_PLATFORM_LINUX_X86_64_GNU -DPEGASUS_USE_SYSLOGS -DPEGASUS_ARCH_LIB=\"lib64\" -DPEGASUS_USE_SQLITE_REPOSITORY -DPEGASUS_ENABLE_CQL -DPEGASUS_DEFAULT_ENABLE_OOP -DPEGASUS_DISABLE_PROV_USERCTXT -DPEGASUS_DISABLE_EXECQUERY -DPEGASUS_ENABLE_AUDIT_LOGGER -DPEGASUS_ENABLE_IPV6 -DPEGASUS_ENABLE_INDICATION_COUNT -DPEGASUS_ENABLE_INTEROP_PROVIDER -DPEGASUS_USE_EXPERIMENTAL_INTERFACES -DPEGASUS_USE_DEPRECATED_INTERFACES -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER -DPEGASUS_DEST_LIB_DIR=\"lib\" -DPEGASUS_ENABLE_PROTOCOL_WSMAN -DPEGASUS_EXTRA_PROVIDER_LIB_DIR=\"\" -DPLATFORM_COMPONENT_NAME=\"cimlistener\"  -I/home/deleisha/CodeSpace/pegasus/src  cimlistener.cpp<br>
clang: warning: argument unused during compilation: '-s'<br>clang: warning: argument unused during compilation: '-fno-enforce-eh-specs'<br><br>g++ without -g<br>-----------------<br>real    6m45.524s<br>user    5m38.231s<br>
sys    0m48.052s<br><br>8.4M    pkg/bin/<br>12M    pkg/lib/<br><br><br>clang without -g<br>real    6m26.595s<br>user    5m17.367s<br>sys    0m40.888s<br><br>memory foot print<br>9.5M    ./pkg/bin/<br>13M    ./pkg/lib/<br>
 <br><div class="gmail_quote">On Fri, Sep 16, 2011 at 1:04 AM, Devchandra L Meetei <span dir="ltr"><<a href="mailto:dlmeetei@gmail.com">dlmeetei@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Sep 16, 2011 at 12:23 AM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@apple.com" target="_blank">echristo@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><br>
On Sep 15, 2011, at 11:10 AM, Devchandra L Meetei wrote:<br>
<br>
> Aha, forgot to mention, debug is enebled in both the clang++ and g++.<br>
> All the flags are same in both the clang++ and g++<br>
<br>
</div>"All flags the same" means nothing to us. That debug info is on means a bit, is there a significant difference with it turned on? Let me be precise: "How are you compiling this program? What exact flags are you using? What are you using to make the comparisons?"<br>



<font color="#888888"><br>
-eric<br></font></blockquote></div></div><div>These are the flags being used and -Wno-unused and -Wno-unused-parameter are repeated.<br>The comparision is very naive, for compilation time time command is being used and for du -h dir for the size. <br>

<br>Let me give the comparison without the -g options shortly<br>
<br></div></div>g++ -c -o /home/deleisha/CodeSpace/pegasus/pkg/obj/utils/cnv2rootbundle/cnv2rootbundle.o -W -Wall -Wno-unused -Wno-unused-parameter -D_GNU_SOURCE -DTHREAD_SAFE -D_REENTRANT -g -m64 -fvisibility=hidden -fPIE    -DPEGASUS_PLATFORM_LINUX_GENERIC_GNU -DPEGASUS_PLATFORM_LINUX_X86_64_GNU -DPEGASUS_USE_SYSLOGS -DPEGASUS_ARCH_LIB=\"lib64\" -DPEGASUS_USE_SQLITE_REPOSITORY -DPEGASUS_ENABLE_CQL -DPEGASUS_DEFAULT_ENABLE_OOP -DPEGASUS_DISABLE_PROV_USERCTXT -DPEGASUS_DISABLE_EXECQUERY -DPEGASUS_ENABLE_AUDIT_LOGGER -DPEGASUS_ENABLE_IPV6 -DPEGASUS_ENABLE_INDICATION_COUNT -DPEGASUS_ENABLE_INTEROP_PROVIDER -DPEGASUS_DEBUG -DPEGASUS_USE_EXPERIMENTAL_INTERFACES -DPEGASUS_USE_DEPRECATED_INTERFACES -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER -DPEGASUS_DEST_LIB_DIR=\"lib\" -DPEGASUS_ENABLE_PROTOCOL_WSMAN -DPEGASUS_EXTRA_PROVIDER_LIB_DIR=\"\" -DPLATFORM_COMPONENT_NAME=\"cnv2rootbundle\"  -I/home/deleisha/CodeSpace/pegasus/src  cnv2rootbundle.cpp<br>


<br><br>
</blockquote></div><br>