Mixing compilers

Henry Spencer henry at utzoo.uucp
Thu Sep 28 03:06:46 AEST 1989


In article <514.nlhp3 at oracle.nl> bengsig at oracle.nl (Bjorn Engsig) writes:
>|  Using libraries compiled with one compiler with programs compiled with
>|another is always a possible cause of problems with calling sequences.
>|-- 
>Does the pANS say anything about linking programs compiled with
>different compilers...

No.  How could it?  This is the most implementation-specific of
implementation-specific characteristics.  What you are doing, in
essence, is using two compilers as parts of the overall implementation.
Clearly, if the different parts of the implementation don't get along,
you are in deep trouble.

>You might even not know
>which compiler was used to compile the libraries.

You *need* to know that its calling conventions are compatible with the
one you are using.
-- 
"Where is D.D. Harriman now,   |     Henry Spencer at U of Toronto Zoology
when we really *need* him?"    | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.std.c mailing list