X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com X-Originating-IP: [207.115.11.155] From: "cbfalconer AT maineline DOT net" To: djgpp-workers AT delorie DOT com Subject: Re: gcc-4.3. snapshots and DJGPP memory allocator efficiency Date: Thu, 06 Dec 2007 02:43:33 +0000 Message-Id: <120620070243.12426.475761D4000619850000308A22230682229B0A02D29B9B0EBF9D0A02010C040E000D0C@att.net> X-Mailer: AT&T Message Center Version 1 (Oct 30 2007) X-Authenticated-Sender: Y2JmYWxjb25lckBhdHQubmV0 Reply-To: djgpp-workers AT delorie DOT com Andris Pavenis wrote: > > There seem to be serious performance problems in GCC-4.3 for DJGPP > due to slowness of free() call especially for Ada compiler. > > Tried to bootstrap gcc-4.3-20071130 for DJGPP (after reverting some > earlier changes in libiberty/configure.ac present in snapshot). > Initially thought that compiler (gnat1.exe) has went into some > infinite loop when compiling gcc/ada/ali.adb for stage2. > > Found that extremly long time is being spent in libibrty/hashtab.c > in procedure htab_delete() which in that case uses free() to > release several millions allocated memory block. htab_delete() > took perhaps about 30 minutes on Intel Core 2 Quad 2.4GHz processor > (I did not measure accuratelly). There is of course not much use of > 4 processor cores as DJGPP cannot use them all. This sounds like the O(n) free is biting. This is solved (O(1)) in nmalloc for DJGPP, available on my page at: The version in that file has a terminal section, useless, for allocating large aligned blocks. The debuggery possibilities, and linkage, are all done and in the manual. I have some ISP problems with mail sending (receive is fine). So I prefer to use news:comp.os.msdos.djgpp. Send any emails to my address in sig below please, or the newsgroup. -- Chuck F (cbfalconer at maineline dot net) Try the download section.