[m-rev.] for review: fix foreign_decls in the LLDS grades
Simon Taylor
stayl at cs.mu.OZ.AU
Wed Aug 7 21:17:34 AEST 2002
On 07-Aug-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> On Wed, Aug 07, 2002 at 08:40:54PM +1000, Simon Taylor wrote:
> > On 07-Aug-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> > > The directory search in this change could be avoided by depending on the
> > > .mh files, but only if the code in export.m was changed so that we alway
> > > output a .mh file.
> > >
> > > If that change is prefered, then let me know.
> >
> > I think that would be the better (and simpler) solution.
> > It would also allow the `.o' files to depend on the `.mh'
> > file for the imported modules rather than the `.c' file,
> > which will cause less unnecessary recompilation.
> Estimated hours taken: 0.5
> Branches: main
>
> When intermodule optimization is enabled make the .o file depend on all
> the possible imported .mh files. This avoids unneccessary recompilation
> because the .mh files are less likely to change, as well as a directory
> search for .m files.
>
> compiler/export.m:
> Always produce a .mh file because intermodule optimization relies on
> it.
>
> compiler/modules.m:
> Make the .o file depend on all the possible .mh files which could be
> imported when intermodule optimization is enabled.
You will also need to change the definition of `<main_module>.mhs'
in modules.m and the code in make__module_target__touched_files
which works out which modules have header files.
Simon.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list