X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_62,J_CHICKENPOX_72,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Thu, 20 Aug 2009 16:09:12 +0800 Message-ID: <58418a380908200109x63702a77kc30b31e87abd8ce@mail.gmail.com> Subject: g++ 4.3.2, using dynamic linked library is very good From: wei niu To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I found the c++ programs compiled with g++ 4.3.2 used dynamic linked libraries,like cyggcc_s-1.dll and cygstdc++-6.dll,whereas g++ 3.4.4 not. So the generated exe file become much smaller.It's very good. Only a "hello,world" program of c++ will be compiled to an exe file larger than 200k, even compiling with -s option.If the program use c++ standard library,if compiling with g++ 3.4.4 cygming special. But now compiling with g++ 4.3.2,the generated exe file is only 20k,if using -s compiling option,it's nearly 5k. Thanks and hope cygwin much better. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple