Linking object files from different C compilers
<p>Say I have two compilers, or even a single compiler with two different option sets. Each compiler compiles some C code into an object and I try to link the two .o files with a common linker. Will this succeed?</p>

<p>My initial thought is: not always. If the compilers are using the same object file format and have compatible options, then it would succeed. But, if the compilers have conflicting options, or (and this is an easy one) are using two different object file formats, it would not work correctly.</p>

<p>Does anyone have more insight on this? What standards would the object files need to comply with to gain confidence that this will work?</p>