Sven Panne <[EMAIL PROTECTED]> writes:

> ... A general question: Is it safe to link together
> modules which have been compiled with different flags
> (e.g. one with -O, the other witout -O,...)?  I presume
> -prof and -conc must be used consistently, but what about
> the others?

First, just to mention that most (all?) Glasgow FP people
are away at their annual workshop, so you may not hear quite
as much from them as you might expect, until Thursday or so.

What you say above is exactly right.  By and large, you can
mix modules compiled with different flags.  As you say, only
the flags that induce changes in the layout of heap objects,
etc., must be used consistently.

I believe it is still true that magical symbols are injected
into .o files so that you will get "consistency errors" if
you try to mix modules that really shouldn't be mixed (if
you can get the link to succeed, that is).  No "consistency
errors" ==> you're in the clear.

Will

Reply via email to