On Fri, 31 Aug 2007, Gabor Szabo wrote:

> perl Configure.pl --gc=malloc

Sorry, but I suspect that's not going to work either.

> make: *** No rule to make target `src/res_lea.c', needed by
> `src/res_lea.o'.  Stop.

That's bit rot -- res_lea.c is now in src/gc/res_lea.c.

However, even fixing that, this is unlikely to work due to problems in
res_lea.c itself.  Much more details are in [perl #42774].

If memory serves, understanding and implementing COW for strings was
where I got stuck.


Meanwhile, this patch should clean up some bit rot and document it all a
little better.

--- parrot-current/config/auto/gc.pm    2007-08-14 16:06:57.000000000 -0400
+++ parrot-andy/config/auto/gc.pm       2007-08-31 12:50:59.000000000 -0400
@@ -20,15 +20,19 @@
 
 =item C<libc>
 
-Use the C library C<malloc>.
+Use the C library C<malloc> along with F<src/gc/res_lea.c>.
+This doesn't work.  See [perl #42774].
 
 =item C<malloc>
 
-Use the malloc in F<src/res_lea.c>.
+Use the malloc in F<src/malloc.c> along with F<src/gc/res_lea.c>.
+Since this uses res_lea.c, it doesn't work either.  See [perl #42774].
 
 =item C<malloc-trace>
 
-Use the malloc in F<src/res_lea.c> with tracing enabled.
+Use the malloc in F<src/malloc-trace.c> with tracing enabled, along
+with F<src/gc/res_lea.c>.
+Since this uses res_lea.c, it doesn't work either.  See [perl #42774].
 
 =back
 
@@ -92,9 +96,9 @@
         $conf->data->set(
             TEMP_gc_c => <<"EOF",
 \$(SRC_DIR)/$gc\$(O):  \$(GENERAL_H_FILES) \$(SRC_DIR)/$gc.c
-\$(SRC_DIR)/res_lea\$(O):      \$(GENERAL_H_FILES) \$(SRC_DIR)/res_lea.c
+\$(SRC_DIR)/gc/res_lea\$(O):   \$(GENERAL_H_FILES) \$(SRC_DIR)/gc/res_lea.c
 EOF
-            TEMP_gc_o => "\$(SRC_DIR)\/$gc\$(O) \$(SRC_DIR)/res_lea\$(O)",
+            TEMP_gc_o => "\$(SRC_DIR)\/$gc\$(O) \$(SRC_DIR)/gc/res_lea\$(O)",
             gc_flag   => '-DGC_IS_MALLOC',
         );
     }


-- 
    Andy Dougherty              [EMAIL PROTECTED]

Reply via email to