[m-rev.] for review: add ll_debug GC grade
Julien Fischer
juliensf at csse.unimelb.edu.au
Wed Dec 7 02:52:37 AEDT 2011
On Tue, 6 Dec 2011, Ian MacLarty wrote:
> Branches: main, 11.07
>
> Add a new GC grade for the .ll_debug Mercury grade.
>
> Previously the .ll_debug grade used the usual "gc" GC grade. This was a
> problem, because it meant that installing a .ll_debug grade would overwrite the
> libgc library with the unoptimised .ll_debug version, resulting in a severe
> performance loss for applications even if they weren't built in the .ll_debug
> grade.
>
> compiler/compile_target_code.m:
> Link against the ll_debug GC library if low-level debugging
> is enabled.
>
> scripts/ml.in:
> Use the new ll_debug GC grade for the .ll_debug Mercury
> grades.
> Index: scripts/ml.in
> ===================================================================
> RCS file: /home/mercury/mercury1/repository/mercury/scripts/ml.in,v
> retrieving revision 1.130
> diff -u -r1.130 ml.in
> --- scripts/ml.in 26 Oct 2011 05:50:19 -0000 1.130
> +++ scripts/ml.in 6 Dec 2011 09:16:16 -0000
> @@ -213,6 +213,9 @@
>
> # Compute the gc grade from the grade
> case "$GRADE" in
> + *.par*.gcd*.ll_debug*.prof*)
> + gc_grade=par_gc_debug_ll_debug_prof
> + ;;
> *.par*.gcd*.prof*)
> gc_grade=par_gc_debug_prof
> ;;
You seem to be adding a spearate gc_debug component for the gcd
grades here, which is fine, but it's not mentioned in the log message
and the corresponding changes haven't been made to
compile_target_code.m.
> @@ -225,6 +228,15 @@
> *.gcd*)
> gc_grade=gc_debug
> ;;
> + *.par*.gc*.ll_debug*.prof*)
> + gc_grade=par_gc_ll_debug_prof
> + ;;
> + *.par*.gc*.ll_debug*)
> + gc_grade=par_gc_ll_debug
> + ;;
> + *.gc*.ll_debug*)
> + gc_grade=gc_ll_debug
> + ;;
> *.par*.gc*.prof*)
> gc_grade=par_gc_prof
> ;;
Aside from the above this looks fine.
Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list