[Issue 6445] [CTFE] Absurd memory usage (still) on building array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 4 14:17:51 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=6445


downs <default_357-line at yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |default_357-line at yahoo.de


--- Comment #6 from downs <default_357-line at yahoo.de> 2012-03-04 14:17:45 PST ---
Note that you can alleviate this under Linux by replacing your
/usr/libexec/gcc/i686-pc-linux-gnu/4.5.3/cc1d (adapt as appropriate, do gdc -v
hello.d to see which backend it uses) with a stub that preloads Boehm like so:

LD_PRELOAD="/usr/lib/libgc.so" $(dirname $(realpath $0))/real_cc1d $@

Note that Boehm has to be built with malloc/calloc/free stubs enabled. Doing
this brought my GDC memory usage down by a factor of six. I can make -j5 again!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list