delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Lines: | 17 |
X-Admin: | news AT aol DOT com |
From: | sterten AT aol DOT com (Sterten) |
Newsgroups: | comp.os.msdos.djgpp |
Date: | 18 Dec 2003 12:48:52 GMT |
References: | <brpjb5$2nq$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> |
Organization: | AOL Bertelsmann Online GmbH & Co. KG http://www.germany.aol.com |
Subject: | Re: re:allocate memory |
Message-ID: | <20031218074852.21755.00000680@mb-m26.aol.com> |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
>> 1. it takes longer to compile such programs >> 2. the executable is very big. > >But both of these only apply if you compile such programs as C++. In >C, there's no noticeable speed degradation nor executable size issue, >as long as you don't initialize the array. thanks, I didn"t know that. Indeed I initialized int array[big]={0}; replaced it with: int array[big]; ... for(i=0;i<=big;i++)array[i]=0; and it's down to 80K from 4M !
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |