Mixing compilers

Barry Margolin barmar at kulla
Fri Sep 29 02:40:40 AEST 1989


In article <1989Sep27.170646.2313 at utzoo.uucp> henry at utzoo.uucp (Henry Spencer) writes:
>In article <514.nlhp3 at oracle.nl> bengsig at oracle.nl (Bjorn Engsig) writes:
>>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.

This is why calling conventions, data type layouts, and object file
formats (including limitations on external symbol names) are best
specified by OS vendors, or even by separate standards organizations
(e.g. COFF), rather than by compiler implementors.  After a program is
compiled, it shouldn't matter what language it was written in, what
compiler was used to compile it, etc.
Barry Margolin, Thinking Machines Corp.

barmar at think.com
{uunet,harvard}!think!barmar



More information about the Comp.std.c mailing list