[m-dev.] diff: add none.gc to LIBGRADES for MSVC

Peter Ross peter.ross at miscrit.be
Wed Jul 19 22:09:08 AEST 2000


On Wed, Jul 19, 2000 at 06:43:46AM +1000, Fergus Henderson wrote:
> On 18-Jul-2000, Peter Ross <peter.ross at miscrit.be> wrote:
> > On Tue, Jul 18, 2000 at 07:32:10AM +1000, Fergus Henderson wrote:
> > > On 17-Jul-2000, Peter Ross <peter.ross at miscrit.be> wrote:
> > > > configure.in:
> > > >     Add none.gc to the list of grades to install when compiling with an
> > > >     MS compiler.
> > > > 
> > > > Index: configure.in
> > > > ===================================================================
> > > > RCS file: /home/mercury1/repository/mercury/configure.in,v
> > > > retrieving revision 1.212
> > > > diff -u -r1.212 configure.in
> > > > --- configure.in	2000/06/29 09:55:33	1.212
> > > > +++ configure.in	2000/07/17 13:47:57
> > > > @@ -1768,10 +1768,10 @@
> > > >  # add `hlc' (--high-level-code, i.e. MLDS back-end) grade
> > > >  LIBGRADES="$LIBGRADES hlc.gc"
> > > >  
> > > > -# If we are using the MS compiler currently the only working grade
> > > > -# is hlc.gc, which is what we install by default.
> > > > +# Not all grades compile with the MS compiler, only install those grades
> > > > +# which do.
> > > >  if test $ac_microsoft = yes; then
> > > > -	LIBGRADES=
> > > > +	LIBGRADES=none.gc
> > > >  fi
> > > 
> > > I don't understand why you need to hard-code this here.
> > > Why don't grades `none', `none.gc.debug.tr', `none.gc.prof',
> > > `none.gc.memprof', etc. work?
> >
> > Profiling isn't supported at all, because the necessary parts of the
> > runtime are not yet implemented.
> 
> For time profiling, shouldn't configure.in determine that automatically?
> And memory profiling does not rely on any non-portable features,
> as I understand it, so memory profiling should work on any system.
> 
OK. Time profiling isn't supported and I haven't tested the memprof grade
yet.  At the moment I am trying to get the compiler to pass all the
tests in the hlc.gc and none.gc grades as they are what are important to
MC.

> > The .debug grade has problems with variables being declared in
> > problematic orders.
> 
> Hmm, perhaps you could elaborate on that.
> 
I can't remember exactly what the problem was, but it was in a similar
vein to all the other problems I have fixed.  I will post the details
when I look at it next.

> And what about the `none' grade?  Shouldn't that work fine on MSVC?
> 
It *should* but I haven't tested it yet.

So in summary I have just added the grades which I know bootstrap.  When
I get a chance I will start testing the other grades and then generalise
the configure script.

Pete
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list