On Thu, Feb 3, 2011 at 2:49 AM, Peter Maydell <peter.mayd...@linaro.org> wrote: > On 2 February 2011 13:16, David Gilbert <david.gilb...@linaro.org> wrote >> 480MB does appear excessive; to be a little fair to gcc that file does >> look like it's trying to >> build itself as a vast inline'd set of switch statements so it will be >> stressing the compiler. >> >> Is this 480MB much more than on x86 or on older versions of the compiler? > > A quick binary-chop using ulimit on x86-32 but the same gcc > "gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5" shows that on x86-32 > you need about 284000K to compile this translation unit. > > I haven't established exactly how much memory we need on ARM; > it's more than 480MB but less than 550000K. (It takes way too long > to compile the file to do a sensible binary chop.) > > The resulting .o file is 1.5M on x86-32 and 1.6M on ARM > (presumably partly due to debug info as we are compiling with > -g -O2).
Steve's having a play with this. Providing hard files like this can compile on readily available hardware, then I'm happy. It will be interesting to see if -fno-var-tracking r getting rid of -g helps... -- Michael _______________________________________________ linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain