[m-dev.] for review: generating C layout structures
Peter Ross
peter.ross at miscrit.be
Tue Jan 9 21:50:03 AEDT 2001
On Tue, Jan 09, 2001 at 09:12:38PM +1100, Tyson Dowd wrote:
> On 09-Jan-2001, Peter Ross <peter.ross at miscrit.be> wrote:
> > On Tue, Jan 09, 2001 at 06:16:56PM +1100, Tyson Dowd wrote:
> > > On 08-Jan-2001, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> > > > For review by Tyson.
> > > >
> > > > Estimated hours taken: 30
> > > >
> > > > Instead of generating the layout structures of labels, procs and modules
> > > > as rvals, generate them almost entirely as C structures. This will make
> > > > future modifications much easier, since mismatches between what the runtime
> > > > expects and what the compiler generates will now be pointed out by the C
> > > > compiler. (It also reduces the size of the C source files generated with
> > > > debugging enabled by about 5%.) Layout structures contain a few components
> > > > that are not well-typed in C; we continue to generate these as rvals.
> > > >
> > In the past these sort of changes have had a fairly high success rate in
> > breaking the MSVC backend, as it is not as forgiving a compiler as gcc.
> > Maybe you could test this change with lcc before checking it in?
>
> I was going to say something to this effect, but I believe layout
> structures aren't generated in the MLDS backend at all.
>
> That belief could be wrong.
>
We are still using the none.gc.debug grade here, so it needs to compile
as well.
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