[m-dev.] for review: generating C layout structures

Tyson Dowd trd at cs.mu.OZ.AU
Tue Jan 9 21:12:38 AEDT 2001


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.

-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
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