[m-rev.] for review: add ll_debug GC grade

Ian MacLarty maclarty at csse.unimelb.edu.au
Wed Dec 7 09:00:31 AEDT 2011


On Wed, Dec 7, 2011 at 2:52 AM, Julien Fischer
<juliensf at csse.unimelb.edu.au> wrote:
>
> 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.
>

There's no new gc_debug grade component.  I'm just handling the case
where you specify the .gcd and .ll_debug components in the same grade.
 But a) I haven't handled all the cases, and b) maybe Pete's
suggestion of having ll_debug imply .gcd is better.

Ian.

--------------------------------------------------------------------------
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