Newsgroups: comp.std.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Mixing compilers
Message-ID: <1989Sep27.170646.2313@utzoo.uucp>
Organization: U of Toronto Zoology
References: <816@tuminfo1.lan.informatik.tu-muenchen.dbp.de> <524@crdos1.crd.ge.COM> <514.nlhp3@oracle.nl>
Date: Wed, 27 Sep 89 17:06:46 GMT

In article <514.nlhp3@oracle.nl> bengsig@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@zoo.toronto.edu