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

Zoltan Somogyi zs at cs.mu.OZ.AU
Thu Jan 11 19:04:23 AEDT 2001


On 09-Jan-2001, Peter Ross <peter.ross at miscrit.be> wrote:
> We are still using the none.gc.debug grade here, so it needs to compile
> as well.

Well, I got an error in stage2 compiling tree234.c due to "string literal too
long". The thing is, the string literal in question (the string table of the
module) is also too long when you use lcc to compile a tree234.c generated with
an unmodified compiler. c_util__output_quoted_multi_string limits the number
of chars included between a pair of ""s to 512 and juxtaposes them back
together. This seems to avoid problems with small limits on string lengths
with MSVC, which presumably you use, but it does not seem to avoid them with
lcc.

It seems to me that lcc has not been able to compile debuggable Mercury
executables since I added module layouts structures (including string tables)
in May 1999; this would include the 0.9 release. Anybody else know different?
And does anyone know how long strings are supposed to be handled with lcc?

Zoltan.
--------------------------------------------------------------------------
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