| delorie.com/archives/browse.cgi | search |
| 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 <wei DOT niu AT gmail DOT com> |
| To: | cygwin AT cygwin DOT com |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |