From: Colin P. A. <co...@co...> - 2007-12-09 05:35:24
|
What do you specify in the xace file when compiling with gec to have your application use the boehm garbage collector? I have: <option name="garbage_collector" value="internal"/> for both gexslt and gestalt - that's for use with SE. Yet it seems to work with gec, although <option name="garbage_collector" value="boehm"/> would seem more logical. I'm guessing both mean the same thing. -- Colin Adams Preston Lancashire |
From: Eric B. <er...@go...> - 2007-12-09 08:47:17
|
Colin Paul Adams wrote: > What do you specify in the xace file when compiling with gec to have > your application use the boehm garbage collector? > > I have: > > <option name="garbage_collector" value="internal"/> > > for both gexslt and gestalt - that's for use with SE. Yet it seems to > work with gec, although > > <option name="garbage_collector" value="boehm"/> > > would seem more logical. I'm guessing both mean the same thing. The Gobo compiler does not take the Xace 'garbage_collector' option yet into account. What you have to do to use the Boehm GC is to use the gec command-line option --gc=boehm (and make sure that the environment variable $BOEHM_GC points to where it is installed. This works fine under Windows when using msc. See the config file $GOBO/tool/gec/config/msc.cfg. I didn't specify the proper config options in the file $GOBO/tool/gec/config/gcc.cfg yet, but it should be easy to do just by looking at what is done in the msc.cfg file. I will try to make gec aware of the Xace 'garbage_collector' option (in addition to the command-line option) in the near future. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |
From: Colin P. A. <co...@co...> - 2007-12-09 09:07:56
|
>>>>> "Eric" == Eric Bezault <er...@go...> writes: Eric> The Gobo compiler does not take the Xace 'garbage_collector' Eric> option yet into account. What you have to do to use the Eric> Boehm GC is to use the gec command-line option --gc=boehm Eric> (and make sure that the environment variable $BOEHM_GC Eric> points to where it is installed. Do I have to download the boehm gc separately then, or is it in the Gobo distribution? -- Colin Adams Preston Lancashire |
From: Eric B. <er...@go...> - 2007-12-09 14:59:24
|
Colin Paul Adams wrote: >>>>>> "Eric" == Eric Bezault <er...@go...> writes: > > Eric> The Gobo compiler does not take the Xace 'garbage_collector' > Eric> option yet into account. What you have to do to use the > Eric> Boehm GC is to use the gec command-line option --gc=boehm > Eric> (and make sure that the environment variable $BOEHM_GC > Eric> points to where it is installed. > > Do I have to download the boehm gc separately then, or is it in the > Gobo distribution? You have to download it separately and install it. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |
From: Colin P. A. <co...@co...> - 2007-12-09 15:01:17
|
>>>>> "Eric" == Eric Bezault <er...@go...> writes: Eric> Windows when using msc. See the config file Eric> $GOBO/tool/gec/config/msc.cfg. I didn't specify the proper Eric> config options in the file $GOBO/tool/gec/config/gcc.cfg Eric> yet, but it should be easy to do just by looking at what is Eric> done in the msc.cfg file. I got it working. For the first time ever, I can run the complete W3C test suite in one go, and quickly too. Here is my gcc.cfg file: -- Command lines cc: gcc $cflags $includes $gc_includes -c $c link: gcc $lflags -lm -o $exe $objs $libs $gc_libs -- File extensions obj: .o exe: -- Variables #ifdef EIF_WORKBENCH cflags: lflags: #else -- cflags: -O2 cflags: lflags: #endif #ifdef EIF_BOEHM_GC gc_includes: -I$BOEHM_GC/include gc_libs: $BOEHM_GC/lib/libgc.a #else gc_includes: gc_libs: #endif -- Colin Adams Preston Lancashire |
From: Eric B. <er...@go...> - 2007-12-09 15:13:57
|
Colin Paul Adams wrote: >>>>>> "Eric" == Eric Bezault <er...@go...> writes: > > Eric> Windows when using msc. See the config file > Eric> $GOBO/tool/gec/config/msc.cfg. I didn't specify the proper > Eric> config options in the file $GOBO/tool/gec/config/gcc.cfg > Eric> yet, but it should be easy to do just by looking at what is > Eric> done in the msc.cfg file. > > I got it working. For the first time ever, I can run the complete W3C > test suite in one go, and quickly too. Congratulations. > Here is my gcc.cfg file: > > -- Command lines > cc: gcc $cflags $includes $gc_includes -c $c > link: gcc $lflags -lm -o $exe $objs $libs $gc_libs > > -- File extensions > obj: .o > exe: > > -- Variables > #ifdef EIF_WORKBENCH > cflags: > lflags: > #else > -- cflags: -O2 > cflags: > lflags: > #endif > #ifdef EIF_BOEHM_GC > gc_includes: -I$BOEHM_GC/include > gc_libs: $BOEHM_GC/lib/libgc.a > #else > gc_includes: > gc_libs: > #endif Can you check it in into SVN? -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |
From: Colin P. A. <co...@co...> - 2007-12-09 15:16:38
|
>>>>> "Eric" == Eric Bezault <er...@go...> writes: Eric> Can you check it in into SVN? Done. -- Colin Adams Preston Lancashire |