profiling behavior

Simon Marlow
Tue, 13 Nov 2001 12:38:49 -0000

> If module A imports B, and if B was compiled without the=20
> profiling options
> (but A was), is the final program expected to abort (illegal=20
> operation or
> something like that)? If it is, why?

You must compile (and link) the whole program with -prof, because that
option changes certain fundamental properties of the virtual machine.
If you link modules compiled in different ways, the behaviour is
unspecified ;-)