Bradley Lucier <lucier@math.purdue.edu> writes:
With later versions of gcc, --enable-single-host is not so bad. (I did a *lot* of benchmarking with Gambit-generated C files and the gcc developers were responsive.) And leaving it off absolutely *kills* performance for many programs.
I ran the package build w/o it: 12 min 37 sec Max memory 187M during compile. And with it: 19 min 6 sec Max memory 396M during compile of _io.c gcc (GCC) 4.0.3 20060304 (prerelease) (Debian 4.0.2-10) The overall average memory use during compile is a lot higher. But it doesn't seem ridiculous, so I will add this config option.
If you wanted to reduce the resources needed to compile Gambit, you might be better off setting
[lindv2:~/Desktop] lucier% diff -p /usr/local/Gambit-C/include/ gambit.h gambit.h *** /usr/local/Gambit-C/include/gambit.h Thu Jan 19 15:17:50 2006 --- gambit.h Wed Jan 25 13:03:48 2006 *************** *** 1192,1197 **** --- 1192,1198 ---- * Determine optimization goal. */
+ #define ___OPTIMIZE_SPACE
Can I assume that this macro is effective for all gsc compiles, not just for the build of Gambit-C itself? If the former, I'd be reluctant to add it since most people have quite a bit of memory these days. -- KBK