[m-dev.] [reuse] diff: fix problem in profile grades

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Mar 10 03:17:11 AEDT 2001


On 09-Mar-2001, Peter Ross <peter.ross at miscrit.be> wrote:
> On Sat, Mar 10, 2001 at 02:00:08AM +1100, Fergus Henderson wrote:
> > On 09-Mar-2001, Peter Ross <peter.ross at miscrit.be> wrote:
> > > Branches: reuse
> > > 
> > > This change avoids generating MR_init_entry() calls for procedures which
> > > don't have a body.
> > 
> > Why?
...
> > Do you have a test case for this?
>
> Yes, try building the ICFP programming contest entry with structure
> reuse turned on in one of the hlc profiling grades.  You end up with
> some dangling references to reuse versions of type specialized
> predicates.  I am not sure where they are coming from.

Why not?  Doesn't think linker tell you?  (If the linker only says the object
file, try building with --c-debug, and you may get the line number.  If that
doesn't work either, and you're using MSVC, try using gcc instead.)

Are the procedures involved versions of procedures that were
originally declared `external'?

> However, this solution allows me to investigate where and why we
> are/aren't getting speed ups and what changes to the memory allocation
> pattern has occured with structure reuse.

OK.  For the reuse branch it is fine.
But I think this one is wrong for the main branch.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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