chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Compile problem on cygwin


From: Jonah Beckford
Subject: [Chicken-users] Compile problem on cygwin
Date: Wed, 26 Feb 2003 17:23:46 -0500

I am not sure if this is particular to my installation of cygwin, but my gcc 3.2 blows up on syntax-case.c using -O3 optimization:
 
*************
chicken syntax-case.scm -quiet -debug-level 0 -optimize-level 2 -include-path . -no-warnings  -output-file syntax-case.c -explicit-use
 
/bin/bash ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DC_STACK_GROWS_DOWNWARD=1 -DC_INSTALL_LIB_HOME='"/usr/local/lib/chicken"' -DC_USE_C_DEFAULTS    -O3 -fomit-frame-pointer -DHAVE_ALLOCA_H -fstrict-aliasing  -c -o syntax-case.lo `test -f 'syntax-case.c' || echo './'`syntax-case.c
 gcc -DHAVE_CONFIG_H -I. -I. -I. -DC_STACK_GROWS_DOWNWARD=1 -DC_INSTALL_LIB_HOME=\"/usr/local/lib/chicken\" -DC_USE_C_DEFAULTS -O3 -fomit-frame-pointer -DHAVE_ALLOCA_H -fstrict-aliasing -c syntax-case.c  -DPIC -o .libs/syntax-case.o
 
cc1: Cannot allocate 786992560 bytes after allocating 95600640 bytes
make: *** [syntax-case.lo] Error 1
*************
 
The -O3 is standard for CHICKEN on cygwin ... I could implement a standard partitioning algorithm (which will have to minimize the number of cross-file continuation/function calls while maximizing the number of continuations in a given file, so we get the maximum optimization possible) to split up CHICKEN generated .c files so they don't get so large.  Anyone have any other suggestions or an objection?
 
The modification would probably look like:
% chicken syntax-case.scm -split 4 -output-prefix syntax-case
which would generate four files: syntax-case[1-4].c
 
FYI, syntax-case.c clocks in at 40365 lines of C code, while the next largest seems to be library.c at 20785 lines.
 
Jonah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]