This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Boehm-gc with -00


Antonio Ake wrote:

 >Hello, how can I configure libgcj to compile boehm-gc  with -00? (I need
 >to do some debugging)
 >(What file do I need to change?)

If you want to rebuild just the GC without optimization, just do (with 
an already built tree)

rm -rf build/i686-pc-linux-gnu/boehm-gc/
make CFLAGS=-g

(note that CFLAGS only affects C compilation, you also need to specify 
CXXFLAGS for C++ source files and GCJFLAGS for Java)

Alternativly you could "cd build/i686-pc-linux-gnu/boehm-gc/", change 
the value of CFLAGS in the generated makefile, and "make clean;; make"

 >The default configuration of GC is incremental generational, it is
 >possible to changed to only-incremental?

By default the libgcj GC is currently not incremental. You can turn 
the incremental mode on, but it interacts badly with libjava's IO code 
(search the archives for the full story).

regards

Bryce.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]