<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 27, 2010, at 8:05 AM, Luc Bourhis wrote:</div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>~> g++ -c -DBOOST_PYTHON_MAX_BASES=2 -fPIC -fno-strict-aliasing -DNDEBUG -march=native -O3 -DBOOST_ALL_NO_LIB -DBOOST_DISABLE_THREADS -I../cctbx/boost -I/usr/include/python2.6 demo.cpp</div><div>~> g++ -o demo.so -shared demo.o -L../cctbx/cctbx_build/lib -lboost_python~>> g++ -o demo_strip.so -s -shared demo.o -L../cctbx/cctbx_build/lib -lboost_python</div><div>~> ls -lhS</div><div><font class="Apple-style-span" face="'Lucida Console'">total 540K</font></div><div><font class="Apple-style-span" face="'Lucida Console'">-rw-r--r-- 1 luc devcom 240K Nov 27 07:50 demo.o</font></div><div><font class="Apple-style-span" face="'Lucida Console'">-rwxr-xr-x 1 luc devcom 170K Nov 27 07:50 demo.so*</font></div><div><font class="Apple-style-span" face="'Lucida Console'">-rwxr-xr-x 1 luc devcom 121K Nov 27 07:50 demo_strip.so*</font></div><div><font class="Apple-style-span" face="'Lucida Console'">-rw-r--r-- 1 luc devcom 902 Nov 27 07:18 demo.cpp</font></div><div>~> g++ --version</div><div>g++ (GCC) 4.4.4 20100630 (Red Hat 4.4.4-10)</div></div><div><br></div><div>to</div><div><br></div><div><div>~> clang++ -c -DBOOST_PYTHON_MAX_BASES=2 -fPIC -fno-strict-aliasing -DNDEBUG -O3 -DBOOST_ALL_NO_LIB -DBOOST_DISABLE_THREADS -I/Users/luc/Developer/cctbx/boost -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 demo.cpp</div><div>~> clang++ -o demo.so -w -bundle -undefined dynamic_lookup demo.o -L$cctbx_build_clang_pch/lib -lboost_python</div><div>~> clang++ -o demo_strip.so -s -w -bundle -undefined dynamic_lookup demo.o -L$cctbx_build_clang_pch/lib -lboost_python</div><div>~> ls -lhS</div><div><font class="Apple-style-span" face="'Lucida Console'">total 1184</font></div><div><font class="Apple-style-span" face="'Lucida Console'">-rwxr-xr-x 1 luc luc 203K Nov 27 16:56 demo.so</font></div><div><font class="Apple-style-span" face="'Lucida Console'">-rwxr-xr-x 1 luc luc 202K Nov 27 16:56 demo_strip.so</font></div><div><font class="Apple-style-span" face="'Lucida Console'">-rw------- 1 luc luc 178K Nov 27 16:56 demo.o</font></div><div><font class="Apple-style-span" face="'Lucida Console'">-rw-r--r--@ 1 luc luc 952B Nov 27 05:13 demo.cpp</font></div></div></div></blockquote><br></div><div>Any reason why demo.cpp is 952 bytes for clang and 902 bytes for gcc?</div><div><br></div><div>Also, it looks like you're comparing Mac OS X to Linux. The binary format on each is very different.</div><br><div>-Henry</div></body></html>