[m-rev.] for review: work towards building the compiler in the java grade

Julien Fischer juliensf at csse.unimelb.edu.au
Wed Jan 19 12:36:24 AEDT 2011


On Wed, 19 Jan 2011, Peter Wang wrote:

>> Index: compiler/Mmakefile
>> ===================================================================
>> RCS file: /home/mercury/mercury1/repository/mercury/compiler/Mmakefile,v
>> retrieving revision 1.107
>> diff -u -r1.107 Mmakefile
>> --- compiler/Mmakefile	30 Sep 2010 07:23:31 -0000	1.107
>> +++ compiler/Mmakefile	18 Jan 2011 15:12:24 -0000
>> @@ -88,6 +88,14 @@
>>  MCFLAGS += --linkage static
>>  endif
>>
>> +# -Xmx256m doesn't always seem to be enough memory to build the complier.
>> +# This bumps up the memory when building the standard library
>
> the compiler

Fixed.

>> +# if the javac executable accepts the -J-Xmx flag, without bumping up
>> +# the memory requirements in general.
>> +ifneq ("$(findstring -J-Xmx,$(JAVACFLAGS))","")
>> +JAVACFLAGS   += -J-Xmx2048m
>> +endif
>> +
>>  #-----------------------------------------------------------------------------#
>>
>>  # Rules for preprocessing `.pp' files.
>
>> Index: compiler/md4.m
>> ===================================================================
>> RCS file: /home/mercury/mercury1/repository/mercury/compiler/md4.m,v
>> retrieving revision 1.3
>> diff -u -r1.3 md4.m
>> --- compiler/md4.m	2 Jan 2011 14:37:54 -0000	1.3
>> +++ compiler/md4.m	18 Jan 2011 15:12:24 -0000
>> @@ -41,6 +41,8 @@
>>
>>  :- implementation.
>>
>> +:- import_module require.
>> +
>
> Is this used?

Yes, that's where the sorry/2 predicate and unexpected/{2,3} predicates
live these days.

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